From 8d915c6cdd24073486cdaaefadaa359659c9fc9c Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Sun, 27 Apr 2014 18:51:51 +0000 Subject: [PATCH] configDB - fixed: info counts bin files, too git-svn-id: https://svn.fhem.de/fhem/trunk@5682 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/configDB.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fhem/configDB.pm b/fhem/configDB.pm index 6cbbe544b..b6a7504d6 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -577,7 +577,7 @@ sub _cfgDB_Info { # read versions table statistics my $count; $count = $fhem_dbh->selectrow_array('SELECT count(*) FROM fhemconfig'); - push @r, " fhemconfig: $count entries\n"; + push @r, " config: $count entries\n"; # read versions creation time $sql = "SELECT * FROM fhemconfig as c join fhemversions as v on v.versionuuid=c.versionuuid ". @@ -601,7 +601,7 @@ sub _cfgDB_Info { $sth->execute(); while ($row = $sth->fetchrow_array()) { (undef,$row) = split(/#/,$row); - $row = " fhemstate: $count entrie$f saved: $row"; + $row = " state: $count entrie$f saved: $row"; push @r, $row; } push @r, $l; @@ -609,9 +609,11 @@ sub _cfgDB_Info { # count files stored in database $row = $fhem_dbh->selectall_arrayref("SELECT filename from fhemfilesave group by filename"); $count = @$row; + $row = $fhem_dbh->selectall_arrayref("SELECT filename from fhembinfilesave group by filename"); + $count += @$row; $count = ($count)?$count:'No'; $f = ("$count" ne '1') ? "s" : ""; - $row = " fhemfilesave: $count file$f stored in database"; + $row = " filesave: $count file$f stored in database"; push @r, $row; push @r, $l;