From: Chad Malfait Date: Sat, 6 Apr 2013 20:44:51 +0000 (-0600) Subject: Set default size from GB to bytes. X-Git-Tag: collectd-5.4.0~56^2~12 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d5b709189f4d91628db1b61021277af17a2b0e3f;p=collectd.git Set default size from GB to bytes. --- 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); }