summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d36acdd)
raw | patch | inline | side by side (parent: d36acdd)
author | Florian Forster <octo@collectd.org> | |
Mon, 8 Jun 2015 10:34:41 +0000 (12:34 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 8 Jun 2015 10:34:41 +0000 (12:34 +0200) |
Fixes: #617
src/apcups.c | patch | blob | history |
diff --git a/src/apcups.c b/src/apcups.c
index 773865344f48050201d090175b3416e9a97f23dc..66fe45e119cda0c396da3bbb46e2012de1401687 100644 (file)
--- a/src/apcups.c
+++ b/src/apcups.c
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)