Przeglądaj źródła

部分数据500毫秒才更新一次

skyffire 9 miesięcy temu
rodzic
commit
023fe26349
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      strategy/src/predictor.rs

+ 1 - 1
strategy/src/predictor.rs

@@ -384,7 +384,7 @@ impl Predictor {
 
         let flow_ratio = Decimal::ZERO;
 
-        let need_append = now - self.prev_insert_time > Decimal::ONE_HUNDRED;
+        let need_append = now - self.prev_insert_time > dec!(500);
         if !need_append && !is_hard_update {
             return;
         }