From 63642a0c6c743b192d1c09e1a5d0b1031d39402d Mon Sep 17 00:00:00 2001
From: Karl DeBisschop <kdebisschop@users.sourceforge.net>
Date: Sat, 23 Aug 2003 13:58:14 +0000
Subject: - fix various format errors with newly added perf data

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@693 f882894a-f735-0410-b71e-b25c423dba1c

diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 197d520..ae02a6e 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -142,26 +142,26 @@ main (int argc, char **argv)
 
 	if (elapsed_time > critical_interval)
 		die (STATE_CRITICAL,
-		     _("DNS OK - %d seconds response time (%s)|time=%ldus\n"),
+		     _("DNS OK - %.3f seconds response time (%s)|time=%ldus\n"),
 		     elapsed_time, output, microsec);
 
 	else if (result == STATE_CRITICAL)
-		printf (_("DNS CRITICAL - %s|time=%ldus\n"), output);
+		printf (_("DNS CRITICAL - %s|time=%ldus\n"), output, microsec);
 
 	else if (elapsed_time > warning_interval)
 		die (STATE_WARNING,
-		     _("DNS OK - %d seconds response time (%s)|time=%ldus\n"),
+		     _("DNS OK - %.3f seconds response time (%s)|time=%ldus\n"),
 		     elapsed_time, output, microsec);
 
 	else if (result == STATE_WARNING)
-		printf (_("DNS WARNING - %s|time=%ldus\n"), output);
+		printf (_("DNS WARNING - %s|time=%ldus\n"), output, microsec);
 
 	else if (result == STATE_OK)
-		printf (_("DNS OK - %d seconds response time (%s)|time=%ldus\n"),
+		printf (_("DNS OK - %.3f seconds response time (%s)|time=%ldus\n"),
 						elapsed_time, output, microsec);
 
 	else
-		printf (_("DNS problem - %s|time=%ldus\n"), output);
+		printf (_("DNS problem - %s|time=%ldus\n"), output, microsec);
 
 	return result;
 }
-- 
cgit v0.10-9-g596f

