2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 20:06:18 +00:00

TimeSeries.pm: removed debug messages, added Id property

git-svn-id: https://svn.fhem.de/fhem/trunk@7799 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2015-01-31 17:14:41 +00:00
parent c1656fdda7
commit 6ed7ec3bd1

View File

@ -1,4 +1,4 @@
# $Id$ # $Id $
############################################################################## ##############################################################################
# #
@ -27,7 +27,7 @@ package TimeSeries;
use warnings; use warnings;
use strict; use strict;
use Data::Dumper; #use Data::Dumper;
no if $] >= 5.017011, warnings => 'experimental::smartmatch'; no if $] >= 5.017011, warnings => 'experimental::smartmatch';
@ -147,7 +147,7 @@ sub add($$$) {
# autoreset # autoreset
$self->reset() if($self->elapsed($t)); $self->reset() if($self->elapsed($t));
main::Debug("ADD ($t,$v)"); ### #main::Debug("ADD ($t,$v)"); ###
# count # count
$self->{count}++; $self->{count}++;
@ -198,7 +198,7 @@ sub add($$$) {
$self->{sd}= sqrt($self->{_S}/ ($n-1)) / $T if($n> 1); $self->{sd}= sqrt($self->{_S}/ ($n-1)) / $T if($n> 1);
} }
} }
main::Debug(Dumper($self)); ### #main::Debug(Dumper($self)); ###
} }