From d5b709189f4d91628db1b61021277af17a2b0e3f Mon Sep 17 00:00:00 2001 From: Chad Malfait Date: Sat, 6 Apr 2013 14:44:51 -0600 Subject: [PATCH] Set default size from GB to bytes. --- src/volume.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/volume.c b/src/volume.c index 99a1434f..ab39dc90 100644 --- a/src/volume.c +++ b/src/volume.c @@ -24,9 +24,6 @@ #include "plugin.h" #include -#define GB (1024*1024*1024) -#define MB (1024*1024) - static void volume_submit(const char *vol_name, gauge_t size, gauge_t free) { value_t values[2]; @@ -63,7 +60,7 @@ static int volume_read(void) dm_list_iterate_items(strl, vgnames) { vg = lvm_vg_open(lvm, strl->str, "r", 0); - volume_submit(strl->str, (float)lvm_vg_get_size(vg)/GB, (float)lvm_vg_get_free_size(vg)/GB); + volume_submit(strl->str, lvm_vg_get_size(vg), lvm_vg_get_free_size(vg)); lvm_vg_close(vg); } -- 2.30.2