Code

apcups branch: Renames some RRD files and DSes.
authorocto <octo>
Fri, 9 Jun 2006 11:39:52 +0000 (11:39 +0000)
committerocto <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.

src/apcups.c

index 3e78bd7eab82d3f9639cc667ca222c177a85cbc5..977b793918c200406a026649c2fbdf1ec0b66477 100644 (file)
@@ -74,17 +74,17 @@ static char *bvolt_ds_def[] =
 };
 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;