From 4e318b9277ba5209fab447da5afa3c0a22a681d9 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Sun, 14 Mar 2004 04:09:19 +0000 Subject: use fperfdata git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@849 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_ups.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/check_ups.c') 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) result = max_state (result, STATE_WARNING); } asprintf (&data, "%s", - perfdata ("voltage", (long)(1000*ups_utility_voltage), "mV", - check_warn, (long)(1000*warning_value), - check_crit, (long)(1000*critical_value), + fperfdata ("voltage", ups_utility_voltage, "V", + check_warn, warning_value, + check_crit, critical_value, TRUE, 0, FALSE, 0)); } else { asprintf (&data, "%s", - perfdata ("voltage", (long)(1000*ups_utility_voltage), "mV", + fperfdata ("voltage", ups_utility_voltage, "V", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); } } -- cgit v1.2.3