Browse Source

Convert lastDetectionTime from ns to ms (#305)

pull/1/head
rozetko 6 years ago committed by Alexey Velikiy
parent
commit
8314555a50
  1. 3
      analytics/analytics/detectors/pattern_detector.py

3
analytics/analytics/detectors/pattern_detector.py

@ -53,7 +53,8 @@ class PatternDetector(Detector):
newCache = detected['cache']
last_dataframe_time = dataframe.iloc[-1]['timestamp']
last_detection_time = last_dataframe_time.value
# TODO: convert from ns to ms more proper way (not dividing by 10^6)
last_detection_time = last_dataframe_time.value / 1000000
return {
'cache': newCache,
'segments': segments,

Loading…
Cancel
Save