summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-02-27 19:25:51 +0100
committerTheTroll <trolldev@gmail.com>2010-02-27 19:25:51 +0100
commit412e440c178726a642657d007ed0eb95f7961dee (patch)
tree2252cc4df7298f81cfabcedeb9a797e0fca5b908
parent720afb744d74f9ff3e46316a323a8c03bb06f8da (diff)
downloadistreamdev-412e440c178726a642657d007ed0eb95f7961dee.tar.gz
istreamdev-412e440c178726a642657d007ed0eb95f7961dee.tar.bz2
Fix status
-rwxr-xr-xstreamstatus.php4
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
{