mirror of
https://github.com/webmin/webmin.git
synced 2025-08-19 01:15:14 +00:00
Fix regex for matching CPU temp https://github.com/webmin/webmin/issues/1484#issuecomment-864450300
This commit is contained in:
@ -525,7 +525,7 @@ if (&has_command("sensors")) {
|
|||||||
# Get odd output like in #1253
|
# Get odd output like in #1253
|
||||||
if ($aa && (
|
if ($aa && (
|
||||||
/temp(\d+):\s+([\+\-][0-9\.]+)\s+.*?[=+].*?\)/ ||
|
/temp(\d+):\s+([\+\-][0-9\.]+)\s+.*?[=+].*?\)/ ||
|
||||||
/temp(\d+):\s+([\+\-][0-9\.]+).*?°[Cc]\s+.*?[=+].*?\)/
|
/temp(\d+):\s+([\+\-][0-9\.]+).*?[Cc]\s+.*?[=+].*?\)/
|
||||||
)) {
|
)) {
|
||||||
# Adjust to start from `0` as all other outputs
|
# Adjust to start from `0` as all other outputs
|
||||||
push(@rvx, { 'core' => (int($1) - 1),
|
push(@rvx, { 'core' => (int($1) - 1),
|
||||||
|
Reference in New Issue
Block a user