reshuffle libbb.h contents so that order of decls makes sense

Found bad typo in largefile support :)
This commit is contained in:
Denis Vlasenko
2006-10-27 09:05:02 +00:00
parent 621204bbf6
commit dca0b707c0
6 changed files with 264 additions and 281 deletions

View File

@ -58,12 +58,13 @@ const char *make_human_readable_str(unsigned long long size,
val /= display_unit; /* Don't combine with the line above!!! */
} else {
++u;
while ((val >= KILOBYTE)
&& (u < zero_and_units + sizeof(zero_and_units) - 1)) {
while ((val >= 1024)
&& (u < zero_and_units + sizeof(zero_and_units) - 1)
) {
f = fmt_tenths;
++u;
frac = ((((int)(val % KILOBYTE)) * 10) + (KILOBYTE/2)) / KILOBYTE;
val /= KILOBYTE;
frac = (((int)(val % 1024)) * 10 + 1024/2) / 1024;
val /= 1024;
}
if (frac >= 10) { /* We need to round up here. */
++val;