We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1f89db commit 1fd9f13Copy full SHA for 1fd9f13
1 file changed
server/mods-available/monitor_core_module.inc.php
@@ -312,12 +312,15 @@ function monitorCpu()
312
*/
313
$cpuData = shell_exec("cat /proc/cpuinfo");
314
$cpuInfo = explode("\n", $cpuData);
315
+ $processor = 0;
316
317
foreach($cpuInfo as $line){
- $part = preg_split("/:/", $line);
318
+
319
+ $part = preg_split("/:/", $line);
320
$key = trim($part[0]);
321
$value = trim($part[1]);
- $data[$key] = $value;
322
+ if($key == 'processor') $processor = intval($value);
323
+ $data[$key.' '.$processor] = $value;
324
}
325
326
/* the cpu has no state. It is, what it is */
0 commit comments