2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

statistics2.cgi: do not count definitions for configDB

git-svn-id: https://svn.fhem.de/fhem/trunk@14792 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2017-07-26 19:01:14 +00:00
parent c609447331
commit 46dc00473a

View File

@ -222,7 +222,11 @@ sub doAggregate() {
foreach my $type (sort @keys) {
next if $type eq 'system';
$countAll{'modules'}{$type}{'definitions'} += $decoded->{$type}{'noModel'} ? $decoded->{$type}{'noModel'} : 0;
if(lc($type) eq 'configdb') {
$countAll{'modules'}{$tyoe}{'definitions'} = 0;
next;
}
$countAll{'modules'}{$type}{'definitions'} += $decoded->{$type}{'noModel'} ? $decoded->{$type}{'noModel'} : 0;
$countAll{'modules'}{$type}{'installations'} += 1;
while ( my ($model, $count) = each( %{$decoded->{$type}}) ) {
next if($model eq "noModel");