We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbe1bf9 commit 609b503Copy full SHA for 609b503
server/lib/classes/cron.d/100-monitor_sys_usage.inc.php
@@ -142,8 +142,8 @@ public function onRunJob() {
142
// Calculate network bandwidth in kilobytes per second
143
if(isset($data['rx']) && isset($data['tx'])) {
144
$data['net'][] = [
145
- 'rx' => ($rx - $data['rx']) / $interval_seconds / 1024,
146
- 'tx' => ($tx - $data['tx']) / $interval_seconds / 1024
+ 'rx' => abs($rx - $data['rx']) / $interval_seconds / 1024,
+ 'tx' => abs($tx - $data['tx']) / $interval_seconds / 1024
147
];
148
149
}
0 commit comments