From a6822e98434cf7da6fab033898094976d881ee0f Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Fri, 4 Feb 2022 11:23:02 +0100 Subject: New upstream version 3.1.2 --- NetworkIOMeter.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NetworkIOMeter.c') diff --git a/NetworkIOMeter.c b/NetworkIOMeter.c index dcba78d..6c429c3 100644 --- a/NetworkIOMeter.c +++ b/NetworkIOMeter.c @@ -85,6 +85,12 @@ static void NetworkIOMeter_updateValues(Meter* this) { cached_txp_total = data.packetsTransmitted; } + if (passedTimeInMs > 30000) { + // Triggers for the first initialization and + // when there was a long time we did not collect updates + hasData = false; + } + this->values[0] = cached_rxb_diff; this->values[1] = cached_txb_diff; if (cached_rxb_diff + cached_txb_diff > this->total) { -- cgit v1.2.3