From: Tim Laszlo Date: Tue, 29 Jul 2014 13:11:30 +0000 (-0500) Subject: drbd plugin: expand comments X-Git-Tag: collectd-5.5.0~233^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f07ff737cc6cf9c01673546f5f20226d98e8d688;p=collectd.git drbd plugin: expand comments --- diff --git a/src/drbd.c b/src/drbd.c index 2c80ca2f..f4105579 100644 --- a/src/drbd.c +++ b/src/drbd.c @@ -136,18 +136,20 @@ static int drbd_read (void) fields_num = strsplit (buffer, fields, STATIC_ARRAY_SIZE (fields)); - /* ignore headers */ + /* ignore headers (first two iterations) */ if (fields_num < 4) continue; if (isdigit(fields[0][0])) { - /* parse the resource line */ + /* parse the resource line, next loop iteration + will submit values for this resource */ resource = strtol(fields[0], NULL, 10); } else { - /* handle stats data */ + /* handle stats data for the resource defined in the + previous iteration */ drbd_submit_fields(resource, fields, fields_num); } } /* while (fgets) */