[Nagiosplug-checkins] nagiosplug/plugins check_procs.c,1.40,1.41 check_dns.c,1.42,1.43

Ton Voon tonvoon at users.sourceforge.net
Thu Dec 9 16:21:08 CET 2004


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17771

Modified Files:
	check_procs.c check_dns.c 
Log Message:
Reverting back ngettext calls


Index: check_procs.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_procs.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- check_procs.c	3 Dec 2004 23:55:29 -0000	1.40
+++ check_procs.c	10 Dec 2004 00:20:23 -0000	1.41
@@ -288,7 +288,7 @@
 			printf (_("%d crit, %d warn out of "), crit, warn);
 		}
 	} 
-	printf ("%d %s", procs, procs == 1 ? _("process") : _("processes"));
+	printf (ngettext ("%d process", "%d processes", (unsigned long) procs), procs);
 	
 	if (strcmp(fmt,"") != 0) {
 		printf (_(" with %s"), fmt);

Index: check_dns.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dns.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- check_dns.c	4 Dec 2004 12:31:41 -0000	1.42
+++ check_dns.c	10 Dec 2004 00:20:23 -0000	1.43
@@ -196,7 +196,7 @@
 			multi_address = TRUE;
 
 		printf ("DNS %s: ", _("OK"));
-		printf (_("%.3f seconds response time "), elapsed_time);
+		printf (ngettext("%.3f second response time ", "%.3f seconds response time ", elapsed_time), elapsed_time);
 		printf (_("%s returns %s"), query_address, address);
 		printf ("|%s\n", fperfdata ("time", elapsed_time, "s", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0));
 	}





More information about the Commits mailing list