]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Introduce virFormatIntPretty
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 9 Nov 2017 15:19:25 +0000 (16:19 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Sat, 18 Nov 2017 09:45:10 +0000 (10:45 +0100)
commit87a8a30d613dd2061377aa46fa6e9a05e12aa1b4
tree6580466adf1818db8094fe132f74d047364691ec
parentb8bbc23fea2302c12cf8e162a6d08ecd304fdcb0
util: Introduce virFormatIntPretty

We can't output better memory sizes if we want to be compatible with libvirt
older than the one which introduced /memory/unit, but for new things we can just
output nicer capacity to the user if available.  And this function enables that.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/libvirt_private.syms
src/util/virutil.c
src/util/virutil.h