From: Michael Poetters Date: Thu, 9 Nov 2017 11:45:34 +0000 (+0100) Subject: nut: changed type of output.realpower to energy, added output.power X-Git-Tag: collectd-5.11.0~25^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a99d2bc3c9ec24548488520d79a08c5ffe616d34;p=thirdparty%2Fcollectd.git nut: changed type of output.realpower to energy, added output.power --- diff --git a/src/nut.c b/src/nut.c index ead149d7d..3d55ad9e3 100644 --- a/src/nut.c +++ b/src/nut.c @@ -316,6 +316,8 @@ static int nut_read(user_data_t *user_data) { else if (strcmp("output.voltage", key) == 0) nut_submit(ups, "voltage", "output", value); else if (strcmp("output.realpower", key) == 0) + nut_submit(ups, "energy", "output", value); + else if (strcmp("output.power", key) == 0) nut_submit(ups, "power", "output", value); } else if (strncmp("ups.", key, 4) == 0) { if (strcmp("ups.load", key) == 0)