]> git.ipfire.org Git - thirdparty/util-linux.git/commit
ilib/strutils: fix rounding in size_to_human_string()
authorKarel Zak <kzak@redhat.com>
Wed, 15 Apr 2020 13:01:12 +0000 (15:01 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 15 Apr 2020 13:06:37 +0000 (15:06 +0200)
commitb38c20e13a51acb7e3bb388e9cc17d5fc905e7d9
treec9c7b5ae53bdab8f73569284acadf00b44afb24c
parenta8906113576b96a8943ed9f5e6a8582745134b1d
ilib/strutils: fix rounding in size_to_human_string()

Thanks to bub75 for the idea.

The patch adds SIZE_DECIMAL_2DIGITS into regression tests.

Addresses: https://github.com/karelzak/util-linux/issues/998
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/strutils.c
tests/expected/misc/strtosize