git-svn-id: https://svn.fhem.de/fhem/trunk@5745 2b470e98-0d58-463d-a4d8-8e2adae1ed80

This commit is contained in:
tpoitzsch
2014-05-04 19:43:53 +00:00
parent d5b19c0d88
commit 5d09f1ca64

View File

@@ -228,8 +228,9 @@ statistics_doStatisticMinMax ($$$$$)
return if not exists ($dev->{READINGS}{$readingName});
# Get reading, cut out first number without units
my $value = $dev->{READINGS}{$readingName}{VAL};
$value =~ s/^([\d.]*)/$1/eg;
$value =~ s/^([\d.]*).*/$1/eg;
# statistics_doStatisticMinMaxSingle: $hash, $readingName, $value, $saveLast, decPlaces
# Daily Statistic