diff options
Diffstat (limited to 'NetworkIOMeter.c')
-rw-r--r-- | NetworkIOMeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NetworkIOMeter.c b/NetworkIOMeter.c index bfcb3c0e..84fc12db 100644 --- a/NetworkIOMeter.c +++ b/NetworkIOMeter.c @@ -28,7 +28,7 @@ static void NetworkIOMeter_updateValues(Meter* this) { const ProcessList* pl = this->pl; static uint64_t cached_last_update = 0; - uint64_t passedTimeInMs = pl->timestampMs - cached_last_update; + uint64_t passedTimeInMs = pl->realtimeMs - cached_last_update; /* update only every 500ms */ if (passedTimeInMs > 500) { @@ -38,7 +38,7 @@ static void NetworkIOMeter_updateValues(Meter* this) { static uint64_t cached_txp_total; uint64_t diff; - cached_last_update = pl->timestampMs; + cached_last_update = pl->realtimeMs; NetworkIOData data; hasData = Platform_getNetworkIO(&data); |