From: Pavel Rochnyack Date: Sun, 8 May 2016 06:53:35 +0000 (+0600) Subject: Revert "apcups plugin: Handle "END APC" lines correctly and stop reading." X-Git-Tag: collectd-5.6.0~303^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=309145fa75386a73bf1584a93e81450368f8569e;p=collectd.git Revert "apcups plugin: Handle "END APC" lines correctly and stop reading." This reverts commit fb075e15e3400afdb691b88f1e1a4a38578aaba9. --- diff --git a/src/apcups.c b/src/apcups.c index b4bc0997..8006bd1e 100644 --- a/src/apcups.c +++ b/src/apcups.c @@ -322,9 +322,6 @@ static int apc_query_server (char const *node, char const *service, printf ("net_recv = `%s';\n", recvline); #endif /* if APCMAIN */ - if (strncmp ("END APC", recvline, strlen ("END APC")) == 0) - break; - toksaveptr = NULL; tokptr = strtok_r (recvline, " :\t", &toksaveptr); while (tokptr != NULL)