xbps-repo: use HN_B|HN_DECIMAL in humanize_number.

--HG--
extra : convert_revision : 8d7d34a9d6f79d063e0069357a968c9d2fce6c6f
This commit is contained in:
Juan RP 2009-04-16 16:08:59 +02:00
parent 38150a9ca0
commit 5ce7128616
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ show_pkg_info(prop_dictionary_t dict)
printf("Installed size: ");
rv = xbps_humanize_number(size, 5,
(int64_t)prop_number_unsigned_integer_value(obj),
"", HN_AUTOSCALE, HN_NOSPACE);
"", HN_AUTOSCALE, HN_B|HN_DECIMAL|HN_NOSPACE);
if (rv == -1)
printf("%ju\n",
prop_number_unsigned_integer_value(obj));
@ -91,7 +91,7 @@ show_pkg_info(prop_dictionary_t dict)
if (obj && prop_object_type(obj) == PROP_TYPE_NUMBER) {
rv = xbps_humanize_number(size, 5,
(int64_t)prop_number_unsigned_integer_value(obj),
"", HN_AUTOSCALE, HN_NOSPACE);
"", HN_AUTOSCALE, HN_B|HN_DECIMAL|HN_NOSPACE);
if (rv == -1)
printf(" (size: %ju)\n",
prop_number_unsigned_integer_value(obj));