X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cmd_putval.c;h=bf3e2b6f2b9880cf50f6d602bf721ed42c51afb7;hb=a349e06f0c4e2c853eced8a2621f52ee712b6e0c;hp=009ab3dc07812ef4a3472445195f762522eee91d;hpb=ff9e11ade5cfabf32c63fb19fc76cbbc4186bc5b;p=collectd.git diff --git a/src/utils_cmd_putval.c b/src/utils_cmd_putval.c index 009ab3dc..bf3e2b6f 100644 --- a/src/utils_cmd_putval.c +++ b/src/utils_cmd_putval.c @@ -25,6 +25,7 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" @@ -218,8 +219,8 @@ int handle_putval (FILE *fh, char *buffer) } /* while (*buffer != 0) */ /* Done parsing the options. */ - if (fh!=stdout) - print_to_socket (fh, "0 Success: %i %s been dispatched.\n", + if (fh!=stdout) + print_to_socket (fh, "0 Success: %i %s been dispatched.\n", values_submitted, (values_submitted == 1) ? "value has" : "values have");