|
@@ -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;
|