aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ups.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2004-03-14 04:09:19 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2004-03-14 04:09:19 +0000
commit4e318b9277ba5209fab447da5afa3c0a22a681d9 (patch)
tree65e99d3a8181584d75726390c5968270c21afa63 /plugins/check_ups.c
parentb86b521b38a993b49e03f827859aea672fdfa806 (diff)
downloadmonitoring-plugins-4e318b9277ba5209fab447da5afa3c0a22a681d9.tar.gz
use fperfdata
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@849 f882894a-f735-0410-b71e-b25c423dba1c
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)
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));
}
}