mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
When displaying the size in 1kB blocks round up if an odd number of
blocks
This commit is contained in:
parent
44c0e17dbe
commit
c66ebe4200
@ -77,7 +77,11 @@ static void print(long size, char *filename)
|
|||||||
bb_printf("%s\t%s\n", make_human_readable_str(size, 512, disp_hr),
|
bb_printf("%s\t%s\n", make_human_readable_str(size, 512, disp_hr),
|
||||||
filename);
|
filename);
|
||||||
#else
|
#else
|
||||||
bb_printf("%ld\t%s\n", size >> disp_k, filename);
|
if (disp_k) {
|
||||||
|
size++;
|
||||||
|
size >>= 1;
|
||||||
|
}
|
||||||
|
bb_printf("%ld\t%s\n", size, filename);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user