aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_dig.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2004-03-04 05:08:43 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2004-03-04 05:08:43 +0000
commit2563edba02a6babb9ce0328e33eb4c5b49b437ad (patch)
tree8786332e9cea558942c22695fbf6af853b0834e7 /plugins/check_dig.c
parent7d7ca121bcabef8ba669c99388b23c1af0ca745e (diff)
downloadmonitoring-plugins-2563edba02a6babb9ce0328e33eb4c5b49b437ad.tar.gz
use float for time in perf data
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@842 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r--plugins/check_dig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index e348a352..9e1d8479 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -151,11 +151,11 @@ main (int argc, char **argv)
printf ("DNS %s - %s|%s\n",
state_text (result), output,
- perfdata("time", microsec, "us",
+ fperfdata("time", elapsed_time, "s",
(warning_interval>UNDEFINED?TRUE:FALSE),
- (int)(1e6*warning_interval),
+ warning_interval,
(critical_interval>UNDEFINED?TRUE:FALSE),
- (int)(1e6*critical_interval),
+ critical_interval,
TRUE, 0, FALSE, 0));
return result;
}