fheminfo: bugfix (Forum #26329)

git-svn-id: https://svn.fhem.de/fhem/trunk@6433 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-08-20 17:36:54 +00:00
parent 4212673aa5
commit 1175efe614
2 changed files with 4 additions and 3 deletions

View File

@@ -217,7 +217,7 @@ CommandFheminfo($$)
$ret = $str;
if(@args != 0 && $args[0] eq "send") {
my $uri = "http://fhem.de/stats/statistics.html";
my $uri = "http://fhem.de/stats/statistics.cgi";
my $req = HTTP::Request->new("POST",$uri);
$req->content_type("application/x-www-form-urlencoded");
my $contInfo;

View File

@@ -196,10 +196,11 @@ doUpdate($$)
return if(!$remFile); # Error already reported
if(length($remFile) ne $r[2]) {
uLog 1, "$fName is ".length($remFile)." bytes, not $r[2] as expected";
uLog 1,
"Got ".length($remFile)." bytes for $fName, not $r[2] as expected,";
if($attr{global}{verbose} == 5) {
upd_writeFile($root, $restoreDir, "$fName.corrupt", $remFile);
uLog 1, "saving it to $fName.corrupt";
uLog 1, "saving it to $fName.corrupt .";
next;
} else {
uLog 1, "aborting.";