1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
Index: check_procs.c
===================================================================
--- check_procs.c (revision 1)
+++ check_procs.c (working copy)
@@ -303,7 +303,8 @@
printf (_("%d crit, %d warn out of "), crit, warn);
}
}
- printf (ngettext ("%d process", "%d processes", (unsigned long) procs), procs);
+
+ printf (ngettext ("%d process|processes=%d;;;0", "%d processes|processes=%d;;;0", (unsigned long) procs), procs, procs, procs);
if (strcmp(fmt,"") != 0) {
printf (_(" with %s"), fmt);
@@ -437,8 +438,8 @@
break;
else
prog = optarg;
- asprintf (&fmt, _("%s%scommand name '%s'"), (fmt ? fmt : ""), (options ? ", " : ""),
- prog);
+ asprintf (&fmt, _("%s%s"), (fmt ? fmt : ""), (options ? ", " : ""),
+ prog);
options |= PROG;
break;
case 'a': /* args (full path name with args) */
@@ -447,7 +448,6 @@
break;
else
args = optarg;
- asprintf (&fmt, "%s%sargs '%s'", (fmt ? fmt : ""), (options ? ", " : ""), args);
options |= ARGS;
break;
case 'r': /* RSS */
Index: check_procs.c
===================================================================
--- check_procs.c (revision 2)
+++ check_procs.c (working copy)
@@ -304,7 +304,7 @@
}
}
- printf (ngettext ("%d process|processes=%d;;;0", "%d processes|processes=%d;;;0", (unsigned long) procs), procs, procs, procs);
+ printf (ngettext ("%d process|processes=%d;;;0", "%d processes|processes=%d;%d;%d;0", (unsigned long) procs), procs, warn, crit, procs, procs);
if (strcmp(fmt,"") != 0) {
printf (_(" with %s"), fmt);
|