diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2024-07-10 14:09:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-10 14:09:49 +0300 |
commit | 8e98857ebfc5222f5afa45ff951cadad2897f569 (patch) | |
tree | 13795cb5919eaa9354b6a42826116e8e8d7a053c | |
parent | 0cce79dfd266a24785f05c079bda22d030a6924c (diff) |
Fix network sent dimensions (#18099)
-rw-r--r-- | src/collectors/windows.plugin/perflib-network.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/collectors/windows.plugin/perflib-network.c b/src/collectors/windows.plugin/perflib-network.c index 2f1bc3c531..ecadd1e876 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)) {
|