summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab425e2)
raw | patch | inline | side by side (parent: ab425e2)
author | Evan Felix <e@pnnl.gov> | |
Thu, 16 May 2013 15:51:12 +0000 (08:51 -0700) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 17 May 2013 10:40:42 +0000 (12:40 +0200) |
src/mic.c | patch | blob | history |
diff --git a/src/mic.c b/src/mic.c
index da58b35a76471df418e159ae5c25f7bc829adf26..49ff0dbf3d8d9d2d3d6b6c39eaa9f3ec835009d0 100644 (file)
--- a/src/mic.c
+++ b/src/mic.c
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);