* util.c (size_trunc): Remove "b" from the output - it's
redundant and wrong - the abbreviation for byte is "B". Reported by Werner Lemberg <wl@gnu.org>
Этот коммит содержится в:
родитель
ac31d97a9e
Коммит
73c700af4b
@ -1,3 +1,9 @@
|
||||
2003-01-22 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* util.c (size_trunc): Remove "b" from the output - it's
|
||||
redundant and wrong - the abbreviation for byte is "B".
|
||||
Reported by Werner Lemberg <wl@gnu.org>
|
||||
|
||||
2003-01-20 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* screen.c (string_file_type): Check for "regularity" before
|
||||
|
@ -242,10 +242,10 @@ char *size_trunc (double size)
|
||||
|
||||
if (size > 999999999L){
|
||||
divisor = 1024;
|
||||
xtra = "Kb";
|
||||
xtra = "K";
|
||||
if (size/divisor > 999999999L){
|
||||
divisor = 1024*1024;
|
||||
xtra = "Mb";
|
||||
xtra = "M";
|
||||
}
|
||||
}
|
||||
g_snprintf (x, sizeof (x), "%.0f%s", (size/divisor), xtra);
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user