Changing json format again

This commit is contained in:
Alexey 2018-10-08 21:09:42 +03:00
parent 777e3441cb
commit 99a4a417b7

View file

@ -23,12 +23,12 @@ def logparse(LOGPATH, INFLUXHOST, INFLUXPORT, INFLUXDBDB, INFLUXUSER, INFLUXUSER
IPS = {}
GEOHASH = {}
COUNT = {}
METRICS = []
with open(LOGPATH, "r") as FILE:
STR_RESULTS = os.stat(LOGPATH)
ST_SIZE = STR_RESULTS[6]
FILE.seek(ST_SIZE)
while 1:
METRICS = []
WHERE = FILE.tell()
LINE = FILE.readline()
if not LINE: