This commit is contained in:
lwl0608 2024-05-08 17:27:09 +08:00
parent dce466cae7
commit 2be6827b78
1 changed files with 2 additions and 3 deletions

View File

@ -38,11 +38,10 @@ class S:
return self.mysql_db_bi.exec(sql, (ptime, flow))
def proc(self):
time_now = int(time.time())
zero_time = get_today_zero_time() - 86400
zero_time = get_today_zero_time()
last_time = self.get_last_ptime()
while last_time <= get_today_zero_time():
while last_time <= int(time.time()):
next_time = last_time + 300
flow = self.get_flow(zero_time, next_time)