From 32b78254c76ebd9a07ad19edf25f1f0846a33bb8 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Sat, 27 Feb 2010 02:12:43 +0100 Subject: Sessions WIP --- streamstatus.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'streamstatus.php') diff --git a/streamstatus.php b/streamstatus.php index 4582dc6..15e2c39 100755 --- a/streamstatus.php +++ b/streamstatus.php @@ -2,16 +2,16 @@ header('Content-Type: text/xml'); echo "\n"; echo "\n"; - $cnt = 0; - while ( ( count(glob('ram/*.ts')) < 2 ) && ( $cnt < 25 ) ) + $cnt = 0; + while ( ( count(glob('*.ts')) < 2 ) && ( $cnt < 25 ) ) { // wait for stream available sleep(1); $cnt++; } - if ( count(glob('ram/*.ts')) < 2 ) + if ( count(glob('*.ts')) < 2 ) echo "error\n"; else echo "ok\n"; -- cgit v1.2.3