Merge pull request #136 from caronpe/patch-1

bug correction
This commit is contained in:
qgarnier 2015-08-17 17:28:12 +02:00
commit cf78a06050
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ sub getdata {
my ($value); my ($value);
#print $stdout; #print $stdout;
foreach (split(/\n/, $stdout)) { foreach (split(/\n/, $stdout)) {
if (/^$searchpattern\s*:\s*(.*)\s(Percent Load Capacity|Percent|Minutes|Seconds|Volts|Hz|seconds|C Internal|F Internal)/i) { if (/^$searchpattern\s*:\s*(.*)\s(Percent Load Capacity|Percent|Minutes|Seconds|Volts|Hz|seconds|C|F Internal)/i) {
$valueok = "1"; $valueok = "1";
$value = $1; $value = $1;
#print $value; #print $value;
@ -60,4 +60,4 @@ sub getdata {
}; };
}; };
1; 1;