From a02cb8f7fa0add21f13ae258208b9a3292e64084 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 22 Jan 2024 18:22:22 +0100 Subject: [PATCH] disk plugin: Do submit metrics in the first iteration. --- src/disk.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/disk.c b/src/disk.c index 6ba25b458..f016fff3d 100644 --- a/src/disk.c +++ b/src/disk.c @@ -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)) { -- 2.47.2