summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9ad9392)
raw | patch | inline | side by side (parent: 9ad9392)
author | octo <octo> | |
Fri, 9 Jun 2006 11:39:52 +0000 (11:39 +0000) | ||
committer | octo <octo> | |
Fri, 9 Jun 2006 11:39:52 +0000 (11:39 +0000) |
The `charge_percent' has been renamed to `load_percent' because it's actually
the load on the UPS, not the charge.
The `charge' file has been renamed to `charge_percent', because the values are
in percent, not Ah.
the load on the UPS, not the charge.
The `charge' file has been renamed to `charge_percent', because the values are
in percent, not Ah.
src/apcups.c | patch | blob | history |
diff --git a/src/apcups.c b/src/apcups.c
index 3e78bd7eab82d3f9639cc667ca222c177a85cbc5..977b793918c200406a026649c2fbdf1ec0b66477 100644 (file)
--- a/src/apcups.c
+++ b/src/apcups.c
};
static int bvolt_ds_num = 1;
-static char *load_file_template = "apcups/charge_percent.rrd";
+static char *load_file_template = "apcups/load_percent.rrd";
static char *load_ds_def[] =
{
"DS:percent:GAUGE:"COLLECTD_HEARTBEAT":0:110",
};
static int load_ds_num = 1;
-static char *charge_file_template = "apcups/charge.rrd";
+static char *charge_file_template = "apcups/charge_percent.rrd";
static char *charge_ds_def[] =
{
- "DS:charge:GAUGE:"COLLECTD_HEARTBEAT":0:U",
+ "DS:percent:GAUGE:"COLLECTD_HEARTBEAT":0:110",
};
static int charge_ds_num = 1;