free: --si changes base of default output
This commit is contained in:
parent
f9f5f6ad38
commit
3ea211fab8
@ -123,7 +123,7 @@ static const char *scale_size(unsigned long size, int flags, struct commandline_
|
||||
switch (args.exponent) {
|
||||
case 0:
|
||||
/* default output */
|
||||
snprintf(buf, sizeof(buf), "%ld", size);
|
||||
snprintf(buf, sizeof(buf), "%ld", (long int)(bytes / (long long int)base));
|
||||
return buf;
|
||||
case 1:
|
||||
/* in bytes, which can not be in SI */
|
||||
|
Loading…
Reference in New Issue
Block a user