From 7fe97a751fb9357006c5759b85abc9587ff37eb6 Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Sun, 16 May 2021 17:11:06 +0300 Subject: [PATCH] Fix to support more fancy `sensor` command outputs --- proc/linux-lib.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proc/linux-lib.pl b/proc/linux-lib.pl index e70103d18a..79bdaa5335 100755 --- a/proc/linux-lib.pl +++ b/proc/linux-lib.pl @@ -523,7 +523,10 @@ sub get_current_cpu_temps /in[\d+]:\s+[\+\-0-9\.]+\s+V/i); # Get odd output like in #1253 - if ($aa && /temp(\d+):\s+([\+\-][0-9\.]+)\s+.*?[=+].*?\)/) { + if ($aa && ( + /temp(\d+):\s+([\+\-][0-9\.]+)\s+.*?[=+].*?\)/ || + /temp(\d+):\s+([\+\-][0-9\.]+).*?°[Cc]\s+.*?[=+].*?\)/ + )) { # Adjust to start from `0` as all other outputs push(@rvx, { 'core' => (int($1) - 1), 'temp' => $2 });