mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
configDB - code cleanup
git-svn-id: https://svn.fhem.de/fhem/trunk@5909 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bdf075749a
commit
e0582b9439
@ -628,9 +628,13 @@ sub _cfgDB_Info() {
|
||||
my ($sql, $sth, @line, $row);
|
||||
|
||||
# read versions table statistics
|
||||
my $maxVersions = $attr{configdb}{maxversions};
|
||||
$maxVersions = ($maxVersions) ? $maxVersions : 0;
|
||||
push @r, " max Versions: $maxVersions" if($maxVersions);
|
||||
my $count;
|
||||
$count = $fhem_dbh->selectrow_array('SELECT count(*) FROM fhemconfig');
|
||||
push @r, " config: $count entries\n";
|
||||
push @r, " config: $count entries";
|
||||
push @r, "";
|
||||
|
||||
# read versions creation time
|
||||
$sql = "SELECT * FROM fhemconfig as c join fhemversions as v on v.versionuuid=c.versionuuid ".
|
||||
@ -659,9 +663,6 @@ sub _cfgDB_Info() {
|
||||
}
|
||||
push @r, $l;
|
||||
|
||||
# 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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user