* 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>
This commit is contained in:
Pavel Roskin 2003-01-22 07:07:05 +00:00
parent ac31d97a9e
commit 73c700af4b
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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);