Drop suffixes, now that we are putting them in correct types
authorEvan Felix <e@pnnl.gov>
Thu, 16 May 2013 15:51:12 +0000 (08:51 -0700)
committerFlorian Forster <octo@collectd.org>
Fri, 17 May 2013 10:40:42 +0000 (12:40 +0200)
src/mic.c

index da58b35..49ff0db 100644 (file)
--- a/src/mic.c
+++ b/src/mic.c
@@ -335,9 +335,9 @@ static int mic_read_power(int mic)
                mic_submit_power(mic,"power",#name,(gauge_t)power_use.name.prr*0.000001); \
        } while(0)
        #define SUB_VOLTS(name) do { if (ignorelist_match(power_ignore,#name)==0) {\
-               mic_submit_power(mic,"power",#name "-pwr",(gauge_t)(power_use.name.pwr*0.000001)); \
-               mic_submit_power(mic,"current",#name "-cur",(gauge_t)(power_use.name.cur*0.001)); \
-               mic_submit_power(mic,"voltage",#name "-volt",(gauge_t)(power_use.name.volt*0.000001)); \
+               mic_submit_power(mic,"power",#name,(gauge_t)(power_use.name.pwr*0.000001)); \
+               mic_submit_power(mic,"current",#name,(gauge_t)(power_use.name.cur*0.001)); \
+               mic_submit_power(mic,"voltage",#name,(gauge_t)(power_use.name.volt*0.000001)); \
        }} while(0)
 
        SUB_POWER(total0);