From 2563edba02a6babb9ce0328e33eb4c5b49b437ad Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Thu, 4 Mar 2004 05:08:43 +0000 Subject: 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 --- plugins/check_dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_dns.c') diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 14d4306c..43a38fa0 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c @@ -198,7 +198,7 @@ main (int argc, char **argv) printf ("%s %s: ", _("DNS"), _("OK")); printf (ngettext("%.3f second response time, ", "%.3f seconds response time, ", elapsed_time), elapsed_time); printf (_("%s returns %s"), query_address, address); - printf ("|%s\n", perfdata ("time", microsec, "us", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); + printf ("|%s\n", fperfdata ("time", elapsed_time, "s", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); } else if (result == STATE_WARNING) printf (_("DNS WARNING - %s\n"), -- cgit v1.2.3