浏览代码

fix mchdatacenter time confict

stanley-king 3 年之前
父节点
当前提交
6cf02679bd
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      plot/MchDataCenter.py

+ 1 - 3
plot/MchDataCenter.py

@@ -10,8 +10,6 @@ from matplotlib.figure import Figure
 from matplotlib import ticker
 from io import BytesIO
 import logging
-import time as time
-
 
 class MchDataCenter(object):
     pos_map = {
@@ -452,7 +450,7 @@ class MchDataCenter(object):
 
         while True:
             try:
-                time_sec = int(time.time())
+                time_sec = int(stime.time())
                 presecs = [900, 1800, 3600, 7200, 86400]
                 mratios = self.mratios(time_sec, presecs)