]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
disk plugin: Do submit metrics in the first iteration. 4217/head
authorFlorian Forster <octo@collectd.org>
Mon, 22 Jan 2024 17:22:22 +0000 (18:22 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 22 Jan 2024 18:28:50 +0000 (19:28 +0100)
src/disk.c

index 6ba25b45811905231b803027142d2c7f6adf49ba..f016fff3dd7e61a83ffe5984d7cd8262b157ba19 100644 (file)
@@ -849,12 +849,6 @@ static int disk_read(void) {
     value_to_rate(&io_time_rate_ms, (value_t){.counter = io_time_ms},
                   DS_TYPE_COUNTER, cdtime(), &ds->io_time_state);
 
-    /* Skip first cycle for newly-added disk */
-    if (ds->poll_count == 0) {
-      DEBUG("disk plugin: (ds->poll_count = 0) => Skipping.");
-      ds->poll_count = poll_count;
-      continue;
-    }
     ds->poll_count = poll_count;
 
     if ((read_ops == 0) && (write_ops == 0)) {