|
@@ -224,6 +224,8 @@ class chctlex
|
|
|
$lVal = $l->compile_val($lProfit);
|
|
|
$rVal = $r->compile_val($lProfit);
|
|
|
|
|
|
+ Log::record("auto_match desc_profit lname={$l->name()} lval={$lVal} rname={$l->name()} rval={$lVal}",Log::DEBUG);
|
|
|
+
|
|
|
if ($lVal == $rVal)
|
|
|
{
|
|
|
if($lVal == 0.0)
|
|
@@ -234,7 +236,7 @@ class chctlex
|
|
|
if($lSubmits > $rSubmits) {
|
|
|
return 1;
|
|
|
}
|
|
|
- elseif ($lProfit < $rRrofit) {
|
|
|
+ elseif ($lSubmits < $rSubmits) {
|
|
|
return -1;
|
|
|
}
|
|
|
else {
|
|
@@ -292,7 +294,7 @@ class chctlex
|
|
|
|
|
|
foreach ($ctls as $item)
|
|
|
{
|
|
|
-// Log::record("ctl_splitor {$item->name()} speed={$item->cur_speed()} max_speed={$item->max_speed()}",Log::DEBUG);
|
|
|
+ Log::record("ctl_splitor {$item->name()} speed={$item->cur_speed()} max_speed={$item->max_speed()}",Log::DEBUG);
|
|
|
if($item->need_feed()) {
|
|
|
$feeds[] = $item;
|
|
|
}
|