mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
Fix core count start with zero https://github.com/webmin/webmin/issues/1484#issuecomment-867139310
This commit is contained in:
@ -554,7 +554,7 @@ if (&has_command("sensors")) {
|
||||
$ad = 0 if (/^\s*$/);
|
||||
$ad = 1 if (/^k[\d]{2}temp-pci-[\d]{2}c[\d]+/i);
|
||||
if ($ad && /temp(\d+):\s+([\+\-][0-9\.]+).*?[Cc]\s+.*?[=+].*?\)/) {
|
||||
push(@rvx, { 'core' => $1,
|
||||
push(@rvx, { 'core' => (int($1) - 1),
|
||||
'temp' => $2 });
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user