stanley-king il y a 2 ans
Parent
commit
3395eaa01d
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      helper/refill/policy/chctlex.php

+ 4 - 2
helper/refill/policy/chctlex.php

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