X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cmd_putval.c;h=009ab3dc07812ef4a3472445195f762522eee91d;hb=354f9991530248e45207d236eb74c1cc3d5238ef;hp=69af2e4ae97c663fcecae4bd5ffe884cd658e09a;hpb=3dc0454f7bee3e852171d1f6944891693364ee01;p=collectd.git diff --git a/src/utils_cmd_putval.c b/src/utils_cmd_putval.c index 69af2e4a..009ab3dc 100644 --- a/src/utils_cmd_putval.c +++ b/src/utils_cmd_putval.c @@ -218,7 +218,8 @@ int handle_putval (FILE *fh, char *buffer) } /* while (*buffer != 0) */ /* Done parsing the options. */ - 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");