Kaynağa Gözat

refactor code

stanley-king 2 yıl önce
ebeveyn
işleme
ba906ee4d7
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      plot/refill/ChSpeedRatioCalc.py

+ 1 - 0
plot/refill/ChSpeedRatioCalc.py

@@ -30,6 +30,7 @@ class ChSpeedRatioCalc(ChannelCalc):
             speed = calc_chspeed(_data, pos_map, end_pos - 60, end_pos)
             ratio, ratio_commit, notify_time, succ_time = calc_chratio(_data, pos_map, end_pos - period, end_pos)
             monitor_commit = calc_commit(_data, pos_map, end_pos - 300, end_pos)
+
             key = f'{_name}-{_spec}-{_card_type}'
             result[key] = [speed, ratio, ratio_commit, notify_time, monitor_commit]
             logger.debug("%s-%d-%d speed=%d ratio=%.5f commit_count=%d notify_time=%.5f succ_time=%.5f monitor_commit=%d", _name, _card_type, _spec, speed, ratio,