Skip to content

Commit 9e64a7d

Browse files
committed
Fixed a bug in cpu info in the monitor module.
1 parent b398c43 commit 9e64a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/mods-available/monitor_core_module.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function monitorCpu()
320320
$key = trim($part[0]);
321321
$value = trim($part[1]);
322322
if($key == 'processor') $processor = intval($value);
323-
$data[$key.' '.$processor] = $value;
323+
if($key != '') $data[$key.' '.$processor] = $value;
324324
}
325325

326326
/* the cpu has no state. It is, what it is */

0 commit comments

Comments
 (0)