From: Evan Felix Date: Thu, 16 May 2013 15:51:12 +0000 (-0700) Subject: Drop suffixes, now that we are putting them in correct types X-Git-Tag: collectd-5.4.0~42^2~3 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fc25f490984524798f044260f40793d1e002a3a5;p=collectd.git Drop suffixes, now that we are putting them in correct types --- diff --git a/src/mic.c b/src/mic.c index da58b35a..49ff0dbf 100644 --- 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);