mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 23:06:37 +00:00
SYSMON: fix: use correct value
git-svn-id: https://svn.fhem.de/fhem/trunk@7153 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8c062724b9
commit
b58aa6c07e
@ -30,7 +30,7 @@ package main;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
my $VERSION = "1.9.4.6";
|
||||
my $VERSION = "1.9.4.7";
|
||||
|
||||
use constant {
|
||||
PERL_VERSION => "perl_version",
|
||||
@ -1123,7 +1123,7 @@ SYSMON_getCPUTemp_FB($$)
|
||||
my ($hash, $map) = @_;
|
||||
my $val = SYSMON_execute($hash, "ctlmgr_ctl r cpu status/StatTemperature");
|
||||
|
||||
if($val=~m/,(\d+)$/) {
|
||||
if($val=~m/(\d+),/) {
|
||||
my $fval = $1;
|
||||
my $val_txt = sprintf("%.2f", $fval);
|
||||
$map->{+CPU_TEMP}="$val_txt";
|
||||
|
Loading…
x
Reference in New Issue
Block a user