diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-27 02:12:43 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-27 02:12:43 +0100 |
commit | 32b78254c76ebd9a07ad19edf25f1f0846a33bb8 (patch) | |
tree | d517c7bef969a6498d40fb64106c41363cfc36f7 /streamstatus.php | |
parent | 0c9414a9fecf2278d468acb1cf184e776b5a15c7 (diff) | |
download | istreamdev-32b78254c76ebd9a07ad19edf25f1f0846a33bb8.tar.gz istreamdev-32b78254c76ebd9a07ad19edf25f1f0846a33bb8.tar.bz2 |
Sessions WIP
Diffstat (limited to 'streamstatus.php')
-rwxr-xr-x | streamstatus.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 "<?xml version=\"1.0\"?>\n"; echo "<status>\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 "<streamstatus>error</streamstatus>\n"; else echo "<streamstatus>ok</streamstatus>\n"; |