From 765cbfab52f761b67b25758f85af853316b8223c Mon Sep 17 00:00:00 2001 From: Christopher Latza Date: Sun, 7 Jun 2020 21:04:43 +0200 Subject: [PATCH] change timeout --- start.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }