about summary refs log tree commit diff
path: root/meminfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'meminfo.c')
-rw-r--r--meminfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/meminfo.c b/meminfo.c
index 9ee1712..407b946 100644
--- a/meminfo.c
+++ b/meminfo.c
@@ -74,7 +74,7 @@ static void meminfo_collect(scrape_req *req, void *ctx) {
     do p++; while (*p == ' ');
 
     double value = strtod(p, &p);
-    if (*p != '\0' && *p != ' ')
+    if (*p != '\0' && *p != '\n' && *p != ' ')
       continue;
 
     if (*p == ' ') {