change timeout
This commit is contained in:
parent
2585b27d7b
commit
765cbfab52
|
@ -10,7 +10,7 @@ $lastOnlineTime = 0;
|
|||
|
||||
while(TRUE)
|
||||
{
|
||||
if(($lastOnlineTime + 30) < time())
|
||||
if(($lastOnlineTime + 3600) < time())
|
||||
{
|
||||
$fileName = "output-".time().".jpg";
|
||||
|
||||
|
@ -45,7 +45,7 @@ while(TRUE)
|
|||
echo "ERROR: Image not generated!\n";
|
||||
}
|
||||
}else{
|
||||
$lastOnlineTime = time();
|
||||
echo "Wait for next check ... ( ".(($lastOnlineTime + 3600) - time()).")\n";
|
||||
sleep(5);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue