diff --git a/start.php b/start.php index 9021b99..0e7fcdb 100644 --- a/start.php +++ b/start.php @@ -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); } }