fixes a bug in crawldaemon statuses, a=chris

Chris Pollett [2011-12-06 21:Dec:th]
fixes a bug in crawldaemon statuses, a=chris
Filename
lib/crawl_daemon.php
diff --git a/lib/crawl_daemon.php b/lib/crawl_daemon.php
index 96ee4e527..72e0ed40a 100644
--- a/lib/crawl_daemon.php
+++ b/lib/crawl_daemon.php
@@ -217,7 +217,7 @@ class CrawlDaemon implements CrawlConstants
         $time = time();
         $active_daemons = array();
         foreach (glob($lock_files) as $file) {
-            if(filemtime($file) - $time < 120) {
+            if($time - filemtime($file)  < 120) {
                 $len = strlen($file) - $suffix_len - $prefix_len;
                 $pre_name = substr($file, $prefix_len, $len);
                 $pre_name_parts = explode("-", $pre_name);
ViewGit