fheminfo: bugfix (Forum #26329)
git-svn-id: https://svn.fhem.de/fhem/trunk@6433 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user