expand time then offline message not aviable
This commit is contained in:
parent
3546f779b7
commit
1e3666a27d
|
@ -53,7 +53,7 @@ while(TRUE)
|
|||
echo "Sending start info to discord...";
|
||||
$result = file_get_contents($DiscordWebhook, false, stream_context_create($startOptions));
|
||||
echo "done.\n";
|
||||
|
||||
|
||||
$lastOnlineTime = time();
|
||||
system("rtmpdump -r ".$StreamURL." -m 15 -o /dev/null");
|
||||
|
||||
|
@ -62,6 +62,8 @@ while(TRUE)
|
|||
echo "Sending end info to discord...";
|
||||
$result = file_get_contents($DiscordWebhook, false, stream_context_create($endOptions));
|
||||
echo "done.\n";
|
||||
}else{
|
||||
$lastOnlineTime = $lastOnlineTime - 3600;
|
||||
}
|
||||
}else{
|
||||
echo "ERROR: Image not generated!\n";
|
||||
|
|
Loading…
Reference in New Issue