From: Florian Forster Date: Sun, 4 Feb 2007 09:18:18 +0000 (+0100) Subject: {apcups,battery} plugin: Changes the voltage DS as for the sensors plugin. X-Git-Tag: collectd-4.0.0-rc4~116 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8800f1e25538f45afbd16c69484a767eb68e6cd5;p=collectd.git {apcups,battery} plugin: Changes the voltage DS as for the sensors plugin. --- diff --git a/src/apcups.c b/src/apcups.c index 1eddcd5e..3060e18c 100644 --- a/src/apcups.c +++ b/src/apcups.c @@ -84,7 +84,7 @@ static int global_sockfd = -1; */ static data_source_t data_source_voltage[1] = { - {"voltage", DS_TYPE_GAUGE, NAN, NAN} + {"value", DS_TYPE_GAUGE, NAN, NAN} }; static data_set_t ds_voltage = diff --git a/src/battery.c b/src/battery.c index 64ff994a..e52c2c80 100644 --- a/src/battery.c +++ b/src/battery.c @@ -59,7 +59,7 @@ static data_source_t data_source_charge[1] = { - {"charge", DS_TYPE_GAUGE, 0, NAN} + {"value", DS_TYPE_GAUGE, 0, NAN} }; static data_set_t charge_ds = @@ -69,7 +69,7 @@ static data_set_t charge_ds = static data_source_t data_source_current[1] = { - {"current", DS_TYPE_GAUGE, NAN, NAN} + {"value", DS_TYPE_GAUGE, NAN, NAN} }; static data_set_t current_ds = @@ -79,7 +79,7 @@ static data_set_t current_ds = static data_source_t data_source_voltage[1] = { - {"voltage", DS_TYPE_GAUGE, NAN, NAN} + {"value", DS_TYPE_GAUGE, NAN, NAN} }; static data_set_t voltage_ds =