xbps-bin: use HN_B and HN_DECIMAL when using humanize_number for a more
detailed output. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091023064559-b91xhoveq6qcpfpp
This commit is contained in:
parent
b2197be315
commit
1e792e62f8
@ -189,14 +189,14 @@ show_transaction_sizes(prop_object_iterator_t iter)
|
||||
* Show total download/installed size for all required packages.
|
||||
*/
|
||||
if (xbps_humanize_number(size, 5, (int64_t)dlsize,
|
||||
"", HN_AUTOSCALE, HN_NOSPACE) == -1) {
|
||||
"", HN_AUTOSCALE, HN_B|HN_DECIMAL|HN_NOSPACE) == -1) {
|
||||
printf("error: humanize_number returns %s\n",
|
||||
strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
printf("Total download size: %s\n", size);
|
||||
if (xbps_humanize_number(size, 5, (int64_t)instsize,
|
||||
"", HN_AUTOSCALE, HN_NOSPACE) == -1) {
|
||||
"", HN_AUTOSCALE, HN_B|HN_DECIMAL|HN_NOSPACE) == -1) {
|
||||
printf("error: humanize_number2 returns %s\n",
|
||||
strerror(errno));
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user