From f07ff737cc6cf9c01673546f5f20226d98e8d688 Mon Sep 17 00:00:00 2001 From: Tim Laszlo Date: Tue, 29 Jul 2014 08:11:30 -0500 Subject: [PATCH] drbd plugin: expand comments --- src/drbd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) */ -- 2.11.0