From 412e440c178726a642657d007ed0eb95f7961dee Mon Sep 17 00:00:00 2001 From: TheTroll Date: Sat, 27 Feb 2010 19:25:51 +0100 Subject: Fix status --- streamstatus.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'streamstatus.php') diff --git a/streamstatus.php b/streamstatus.php index ecae027..cbcf396 100755 --- a/streamstatus.php +++ b/streamstatus.php @@ -13,8 +13,8 @@ echo "\n"; echo "\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 "errorError: maximun number of sessions reached\n"; else { -- cgit v1.2.3