From 39ea1661f666b6ce8f56ff1e310666331fb53f9b Mon Sep 17 00:00:00 2001 From: Alex Deymo Date: Tue, 3 Sep 2013 00:18:26 -0700 Subject: [PATCH] aquaero: Fix type names on aquaero plugin. The percentage values are now reported as "percent" and the "flow" type is included in the types.db list. --- src/aquaero.c | 4 ++-- src/types.db | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/aquaero.c b/src/aquaero.c index 84c797bc..5db988e6 100644 --- a/src/aquaero.c +++ b/src/aquaero.c @@ -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); diff --git a/src/types.db b/src/types.db index 3a5e207a..8c72429d 100644 --- a/src/types.db +++ b/src/types.db @@ -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 -- 2.30.2