projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Disambiguated the protocol used by the unixsock (and other) plugins.
[collectd.git]
/
src
/
utils_cmd_listval.c
diff --git
a/src/utils_cmd_listval.c
b/src/utils_cmd_listval.c
index
644a67c
..
8d6c783
100644
(file)
--- a/
src/utils_cmd_listval.c
+++ b/
src/utils_cmd_listval.c
@@
-53,7
+53,7
@@
int handle_listval (FILE *fh, char **fields, int fields_num)
return (-1);
}
- fprintf (fh, "%i Value
s found\n", (int) number
);
+ fprintf (fh, "%i Value
%s found\n", (int) number, (number == 1) ? "" : "s"
);
for (i = 0; i < number; i++)
fprintf (fh, "%u %s\n", (unsigned int) times[i], names[i]);
fflush (fh);