mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix regex for CPU temp https://github.com/webmin/webmin/issues/1552#issuecomment-985504912
This commit is contained in:
@@ -510,7 +510,7 @@ if (&has_command("sensors")) {
|
||||
$cpu++ if ($cpu_volt || $cpu_fan_num);
|
||||
|
||||
# CPU package
|
||||
($cpu_package) = $_ =~ /(package\s+id\s+[\d]+)/i
|
||||
($cpu_package) = $_ =~ /(?|(package\s+id\s+[\d]+)|(coretemp-[a-z]+-[\d]+))/i
|
||||
if (!$cpu_package);
|
||||
|
||||
# Standard outputs
|
||||
|
||||
Reference in New Issue
Block a user