Skip to content

Commit 609b503

Browse files
author
Till Brehm
committed
Fixed issue with metrics monitoring after server reboot
1 parent bbe1bf9 commit 609b503

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/lib/classes/cron.d/100-monitor_sys_usage.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ public function onRunJob() {
142142
// Calculate network bandwidth in kilobytes per second
143143
if(isset($data['rx']) && isset($data['tx'])) {
144144
$data['net'][] = [
145-
'rx' => ($rx - $data['rx']) / $interval_seconds / 1024,
146-
'tx' => ($tx - $data['tx']) / $interval_seconds / 1024
145+
'rx' => abs($rx - $data['rx']) / $interval_seconds / 1024,
146+
'tx' => abs($tx - $data['tx']) / $interval_seconds / 1024
147147
];
148148

149149
}

0 commit comments

Comments
 (0)