From cc0c3c5b7b12d8c55ca1f4b87f7961e177ac2fa4 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Tue, 13 May 2014 10:16:05 +0000 Subject: [PATCH] configDB - minor bugfix (file update) git-svn-id: https://svn.fhem.de/fhem/trunk@5844 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/configDB.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fhem/configDB.pm b/fhem/configDB.pm index a3336c12b..67d9785c3 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -275,7 +275,8 @@ if($cfgDB_dbconn =~ m/pg:/i) { my $id = $fhem_dbh->selectrow_array("SELECT filename from fhembinfilesave where filename = '$filename'"); $fhem_dbh->disconnect(); if($id) { - _cfgDB_Fileimport($filename,1) if $id; + my $filesize = -s $filename; + _cfgDB_Fileimport($filename,$filesize,1) if $id; Log 5, "file $filename updated in configDB"; } return ""; @@ -975,7 +976,8 @@ sub _cfgDB_Updatefile($) { my $id = $fhem_dbh->selectrow_array("SELECT filename from fhembinfilesave where filename = '$filename'"); $fhem_dbh->disconnect(); if($id) { - _cfgDB_Fileimport($filename,1) if $id; + my $filesize = -s $filename; + _cfgDB_binFileimport($filename,$filesize,1) if $id; Log 5, "file $filename updated in configDB"; } return "";