Skip to content

Commit

Permalink
update to take time in float
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaszurkan-optimizely committed Dec 13, 2019
1 parent a9a15ac commit c681c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimizely/event/event_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ def _get_time(self, _time=None):
Integer time in seconds.
"""
if _time is None:
return int(round(time.time()))
return time.time()

return int(round(_time))
return _time

def start(self):
""" Starts the batch processing thread to batch events. """
Expand Down

0 comments on commit c681c1c

Please sign in to comment.