|
@@ -15,7 +15,7 @@ class ChSpeedRatioCalc(ChannelCalc):
|
|
|
|
|
|
reader = self._reader()
|
|
|
end_time = int(time.time())
|
|
|
- period = 900
|
|
|
+ period = 1800
|
|
|
days, start_time, end_time = self.calc_time(reader, end_time - period, end_time)
|
|
|
|
|
|
day_stamp = days[0]
|
|
@@ -27,7 +27,7 @@ class ChSpeedRatioCalc(ChannelCalc):
|
|
|
|
|
|
result = dict()
|
|
|
for _name, _card_type, _spec, _data in gen:
|
|
|
- speed = calc_chspeed(_data, pos_map, end_pos - 60, end_pos)
|
|
|
+ speed = calc_chspeed(_data, pos_map, end_pos - 300, end_pos) / 5
|
|
|
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)
|
|
|
|