diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-27 19:25:51 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-27 19:25:51 +0100 |
commit | 412e440c178726a642657d007ed0eb95f7961dee (patch) | |
tree | 2252cc4df7298f81cfabcedeb9a797e0fca5b908 /streamstatus.php | |
parent | 720afb744d74f9ff3e46316a323a8c03bb06f8da (diff) | |
download | istreamdev-412e440c178726a642657d007ed0eb95f7961dee.tar.gz istreamdev-412e440c178726a642657d007ed0eb95f7961dee.tar.bz2 |
Fix status
Diffstat (limited to 'streamstatus.php')
-rwxr-xr-x | streamstatus.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/streamstatus.php b/streamstatus.php index ecae027..cbcf396 100755 --- a/streamstatus.php +++ b/streamstatus.php @@ -13,8 +13,8 @@ echo "<?xml version=\"1.0\"?>\n"; echo "<status>\n"; // First check that we are allowed to create a new encoding process -$nbencprocess = exec("find -name segmenter.pid | wc | awk '{ print $1 }'"); -if ($nbencprocess > $maxencodingprocesses) +$nbencprocess = exec("find ram/ -name segmenter.pid | wc | awk '{ print $1 }'"); +if ($nbencprocess >= $maxencodingprocesses) echo "<streamstatus>error</streamstatus><message>Error: maximun number of sessions reached</message>\n"; else { |