From bcaa75ae51638a76ab74a940f6b015eead910c9a Mon Sep 17 00:00:00 2001 From: Florian Asche Date: Sun, 23 Mar 2014 00:42:00 +0100 Subject: [PATCH] Bugfix: Temperature didnt get any data because the regex was not complete. --- apps/apcupsd/local/mode/libgetdata.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/apcupsd/local/mode/libgetdata.pm b/apps/apcupsd/local/mode/libgetdata.pm index 94066eb4c..5412eef49 100644 --- a/apps/apcupsd/local/mode/libgetdata.pm +++ b/apps/apcupsd/local/mode/libgetdata.pm @@ -56,7 +56,7 @@ sub getdata { my ($value); #print $stdout; foreach (split(/\n/, $stdout)) { - if (/^$searchpattern\s*:\s*(.*)\s(Percent Load Capacity|Percent|Minutes|Seconds|Volts|Hz|seconds)/i) { + if (/^$searchpattern\s*:\s*(.*)\s(Percent Load Capacity|Percent|Minutes|Seconds|Volts|Hz|seconds|C Internal|F Internal)/i) { $valueok = "1"; $value = $1; #print $value;