aquaero: Fix type names on aquaero plugin.
authorAlex Deymo <deymo@chromium.org>
Tue, 3 Sep 2013 07:18:26 +0000 (00:18 -0700)
committerMarc Fournier <marc.fournier@camptocamp.com>
Sat, 21 Sep 2013 08:13:23 +0000 (10:13 +0200)
The percentage values are now reported as "percent" and the "flow"
type is included in the types.db list.

src/aquaero.c
src/types.db

index 84c797b..5db988e 100644 (file)
@@ -158,7 +158,7 @@ static int aquaero_read (void)
 
                aquaero_submit ("fanspeed", type_instance,
                                aq_data.fan_rpm[i]);
-               aquaero_submit ("percentage", type_instance,
+               aquaero_submit ("percent", type_instance,
                                aq_data.fan_duty[i]);
                aquaero_submit ("voltage", type_instance,
                                aq_data.fan_voltage[i]);
@@ -177,7 +177,7 @@ static int aquaero_read (void)
        aquaero_submit_array("flow", "sensor", aq_data.flow, AQ5_NUM_FLOW);
 
        /* Liquid level */
-       aquaero_submit_array("percentage", "waterlevel",
+       aquaero_submit_array("percent", "waterlevel",
                        aq_data.level, AQ5_NUM_LEVEL);
 
        return (0);
index 3a5e207..8c72429 100644 (file)
@@ -61,6 +61,7 @@ entropy                       value:GAUGE:0:4294967295
 fanspeed               value:GAUGE:0:U
 file_size              value:GAUGE:0:U
 files                  value:GAUGE:0:U
+flow                   value:GAUGE:0:U
 fork_rate              value:DERIVE:0:U
 frequency_offset       value:GAUGE:-1000000:1000000
 frequency              value:GAUGE:0:U