Browse Source

Update pattern_detector.py

pull/1/head
Coin de Gamma 6 years ago committed by GitHub
parent
commit
d0616844b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      analytics/analytics/detectors/pattern_detector.py

2
analytics/analytics/detectors/pattern_detector.py

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

Loading…
Cancel
Save