Skip to content

Commit

Permalink
fixing reset to stream time instead of current time
Browse files Browse the repository at this point in the history
  • Loading branch information
iannesbitt committed Mar 15, 2020
1 parent fdff139 commit 697deec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rsudp/c_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def run(self):
else:
if self.exceed:
if self.stalta[-1] < self.reset:
self.alarm_reset = rs.UTCDateTime.now()
self.alarm_reset = rs.fsec(self.stream[0].stats.endtime) # lazy; effective
self.exceed = False
print()
printM('Max STA/LTA ratio reached in alarm state: %s' % (round(self.maxstalta, 3)),
Expand Down

0 comments on commit 697deec

Please sign in to comment.