Skip to content

Commit

Permalink
Accept scanlines from the future
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Feb 12, 2018
1 parent 671b076 commit a4066f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trollcast/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def read(self, data, f_elev=None):
days = self.timecode(line["timecode"])
utctime = datetime(year, 1, 1) + days

if utctime > now:
# Can't have data from the future... yet :)
if utctime > now + timedelta(seconds=1):
# Can't have data from the *distant* future... yet :)
utctime = datetime(year - 1, 1, 1) + days

qual = (np.sum(line['aux_sync'] == self.hrpt_sync) +
Expand Down

0 comments on commit a4066f9

Please sign in to comment.