stanley-king vor 3 Jahren
Ursprung
Commit
a1fbce8dc8
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      helper/refill/policy/chctl.php

+ 3 - 3
helper/refill/policy/chctl.php

@@ -162,8 +162,8 @@ class chctl
     const sleep_ratio   = 0.05;
     const timeout_level = 180;
 
-    const sleep_time   = 1800;
-    const sleep_count  = 15;
+    const sleep_time   = 120;
+    const sleep_count  = 5;
     const wakeup_count = 5;
 
     const profit_count = 90;
@@ -215,7 +215,7 @@ class chctl
                     [$count,$ratio] = $item->notify_ratio();
                     if($count < $low_threshold || time() < $time + $max_sleep_time) {
                         $item->wakeup();
-                        $result[] = $item;
+                        $wakeups[] = $item;
                     }
                     else {
                         $sleeps[] = $item;