From f09848204fa5283d21ea43e262ee41aa578e1808 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 26 Aug 2024 10:15:24 +0200 Subject: Merging upstream version 1.47.0. Signed-off-by: Daniel Baumann --- src/collectors/windows.plugin/perflib-network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/collectors/windows.plugin/perflib-network.c') diff --git a/src/collectors/windows.plugin/perflib-network.c b/src/collectors/windows.plugin/perflib-network.c index 2f1bc3c53..ecadd1e87 100644 --- a/src/collectors/windows.plugin/perflib-network.c +++ b/src/collectors/windows.plugin/perflib-network.c @@ -312,7 +312,7 @@ static bool do_network_interface(PERF_DATA_BLOCK *pDataBlock, int update_every, d->collected_metadata = true; } - if(perflibGetInstanceCounter(pDataBlock, pObjectType, pi, &d->traffic.received) || + if(perflibGetInstanceCounter(pDataBlock, pObjectType, pi, &d->traffic.received) && perflibGetInstanceCounter(pDataBlock, pObjectType, pi, &d->traffic.sent)) { if(d->traffic.received.current.Data == 0 && d->traffic.sent.current.Data == 0) @@ -350,7 +350,7 @@ static bool do_network_interface(PERF_DATA_BLOCK *pDataBlock, int update_every, rrdset_done(d->traffic.st); } - if(perflibGetInstanceCounter(pDataBlock, pObjectType, pi, &d->packets.received) || + if(perflibGetInstanceCounter(pDataBlock, pObjectType, pi, &d->packets.received) && perflibGetInstanceCounter(pDataBlock, pObjectType, pi, &d->packets.sent)) { if (unlikely(!d->packets.st)) { -- cgit v1.2.3