xbps-repo: use HN_B|HN_DECIMAL in humanize_number.
--HG-- extra : convert_revision : 8d7d34a9d6f79d063e0069357a968c9d2fce6c6f
This commit is contained in:
parent
38150a9ca0
commit
5ce7128616
|
@ -64,7 +64,7 @@ show_pkg_info(prop_dictionary_t dict)
|
||||||
printf("Installed size: ");
|
printf("Installed size: ");
|
||||||
rv = xbps_humanize_number(size, 5,
|
rv = xbps_humanize_number(size, 5,
|
||||||
(int64_t)prop_number_unsigned_integer_value(obj),
|
(int64_t)prop_number_unsigned_integer_value(obj),
|
||||||
"", HN_AUTOSCALE, HN_NOSPACE);
|
"", HN_AUTOSCALE, HN_B|HN_DECIMAL|HN_NOSPACE);
|
||||||
if (rv == -1)
|
if (rv == -1)
|
||||||
printf("%ju\n",
|
printf("%ju\n",
|
||||||
prop_number_unsigned_integer_value(obj));
|
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) {
|
if (obj && prop_object_type(obj) == PROP_TYPE_NUMBER) {
|
||||||
rv = xbps_humanize_number(size, 5,
|
rv = xbps_humanize_number(size, 5,
|
||||||
(int64_t)prop_number_unsigned_integer_value(obj),
|
(int64_t)prop_number_unsigned_integer_value(obj),
|
||||||
"", HN_AUTOSCALE, HN_NOSPACE);
|
"", HN_AUTOSCALE, HN_B|HN_DECIMAL|HN_NOSPACE);
|
||||||
if (rv == -1)
|
if (rv == -1)
|
||||||
printf(" (size: %ju)\n",
|
printf(" (size: %ju)\n",
|
||||||
prop_number_unsigned_integer_value(obj));
|
prop_number_unsigned_integer_value(obj));
|
||||||
|
|
Loading…
Reference in New Issue