}
}
+ if (human_readable_base)
+ output_units = 1;
+
return optind;
}
p = _("total");
FPUTS (p, stdout, strlen (p));
PUTCHAR (' ');
- p = human_readable (total_blocks, buf, ST_NBLOCKSIZE, output_units, 0);
+ p = human_readable (total_blocks, buf, ST_NBLOCKSIZE, output_units,
+ human_readable_base);
FPUTS (p, stdout, strlen (p));
PUTCHAR ('\n');
}
{
char buf[LONGEST_HUMAN_READABLE + 1];
int len = strlen (human_readable (blocks, buf, ST_NBLOCKSIZE,
- output_units, 0));
+ output_units, human_readable_base));
if (block_size_size < len)
block_size_size = len < 7 ? len : 7;
}
char hbuf[LONGEST_HUMAN_READABLE + 1];
sprintf (p, "%*s ", block_size_size,
human_readable ((uintmax_t) ST_NBLOCKS (f->stat), hbuf,
- ST_NBLOCKSIZE, output_units, 0));
+ ST_NBLOCKSIZE, output_units,
+ human_readable_base));
p += strlen (p);
}
if (print_block_size)
printf ("%*s ", block_size_size,
human_readable ((uintmax_t) ST_NBLOCKS (f->stat), buf,
- ST_NBLOCKSIZE, output_units, 0));
+ ST_NBLOCKSIZE, output_units, human_readable_base));
print_name_with_quoting (f->name, f->stat.st_mode, f->linkok, NULL);