2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

statistics2.cgi: do not count definitions for configDB

git-svn-id: https://svn.fhem.de/fhem/trunk@14802 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2017-07-27 17:26:22 +00:00
parent 6388c744e7
commit 3a68cf88ba

View File

@ -222,10 +222,6 @@ sub doAggregate() {
foreach my $type (sort @keys) {
next if $type eq 'system';
if(lc($type) eq 'configdb') {
$countAll{'modules'}{$type}{'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}}) ) {
@ -233,8 +229,12 @@ sub doAggregate() {
$countAll{'modules'}{$type}{'definitions'} += $count;
next if(ref($model) eq "HASH");
next if($model eq "migratedData");
$countAll{'models'}{$type}{$model}{'definitions'} += $count;
$countAll{'models'}{$type}{$model}{'installations'} += 1;
$countAll{'models'}{$type}{$model}{'definitions'} += $count;
if (lc($type) eq 'configdb') {
$countAll{'modules'}{$type}{'definitions'} = 0;
$countAll{'models'}{$type}{$model}{'definitions'} = 0;
}
}
}
}