set last time
This commit is contained in:
parent
303a682eb1
commit
3546f779b7
|
@ -53,7 +53,8 @@ while(TRUE)
|
||||||
echo "Sending start info to discord...";
|
echo "Sending start info to discord...";
|
||||||
$result = file_get_contents($DiscordWebhook, false, stream_context_create($startOptions));
|
$result = file_get_contents($DiscordWebhook, false, stream_context_create($startOptions));
|
||||||
echo "done.\n";
|
echo "done.\n";
|
||||||
|
|
||||||
|
$lastOnlineTime = time();
|
||||||
system("rtmpdump -r ".$StreamURL." -m 15 -o /dev/null");
|
system("rtmpdump -r ".$StreamURL." -m 15 -o /dev/null");
|
||||||
|
|
||||||
if(($lastOnlineTime + 10) < time())
|
if(($lastOnlineTime + 10) < time())
|
||||||
|
|
Loading…
Reference in New Issue