summaryrefslogtreecommitdiffstats
path: root/plugins/check_ups.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ups.c')
-rw-r--r--plugins/check_ups.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index 116e888c..f88e9e9f 100644
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
@@ -167,13 +167,13 @@ main (int argc, char **argv)
167 result = max_state (result, STATE_WARNING); 167 result = max_state (result, STATE_WARNING);
168 } 168 }
169 asprintf (&data, "%s", 169 asprintf (&data, "%s",
170 perfdata ("voltage", (long)(1000*ups_utility_voltage), "mV", 170 fperfdata ("voltage", ups_utility_voltage, "V",
171 check_warn, (long)(1000*warning_value), 171 check_warn, warning_value,
172 check_crit, (long)(1000*critical_value), 172 check_crit, critical_value,
173 TRUE, 0, FALSE, 0)); 173 TRUE, 0, FALSE, 0));
174 } else { 174 } else {
175 asprintf (&data, "%s", 175 asprintf (&data, "%s",
176 perfdata ("voltage", (long)(1000*ups_utility_voltage), "mV", 176 fperfdata ("voltage", ups_utility_voltage, "V",
177 FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); 177 FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0));
178 } 178 }
179 } 179 }