From 939c8eb4fe61b4580816e0ec3e301eaa3c898602 Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Tue, 22 Jun 2021 10:57:53 +0300 Subject: [PATCH] Fix regex for matching CPU temp https://github.com/webmin/webmin/issues/1484#issuecomment-864450300 --- proc/linux-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc/linux-lib.pl b/proc/linux-lib.pl index 79bdaa533..2d2fc5c59 100755 --- a/proc/linux-lib.pl +++ b/proc/linux-lib.pl @@ -525,7 +525,7 @@ if (&has_command("sensors")) { # Get odd output like in #1253 if ($aa && ( /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 push(@rvx, { 'core' => (int($1) - 1),