0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-13 17:19:11 +00:00

Fix network sent dimensions ()

This commit is contained in:
Stelios Fragkakis 2024-07-10 14:09:49 +03:00 committed by GitHub
parent 0cce79dfd2
commit 8e98857ebf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)) {