X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdrbd.c;h=d46bb020ed5cc89d821c1ea5caa71d665f169ec8;hb=0ba2f3a1a1db4ed7ce6f990b22b9605e19fc7ab9;hp=cc306dcb2be679e7c91fde0255c3793033a1e232;hpb=f5adf265a374e5e0dba89a4a9903e7719dc57039;p=collectd.git diff --git a/src/drbd.c b/src/drbd.c index cc306dcb..d46bb020 100644 --- a/src/drbd.c +++ b/src/drbd.c @@ -142,8 +142,12 @@ static int drbd_read (void) fields, STATIC_ARRAY_SIZE (fields)); /* ignore headers (first two iterations) */ - if (fields_num < 4) + if ((strcmp(fields[0], "version:") == 0) || + (strcmp(fields[0], "srcversion:") == 0) || + (strcmp(fields[0], "GIT-hash:") == 0)) + { continue; + } if (isdigit(fields[0][0])) {