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 = {} IPS = {}
GEOHASH = {} GEOHASH = {}
COUNT = {} COUNT = {}
METRICS = []
with open(LOGPATH, "r") as FILE: with open(LOGPATH, "r") as FILE:
STR_RESULTS = os.stat(LOGPATH) STR_RESULTS = os.stat(LOGPATH)
ST_SIZE = STR_RESULTS[6] ST_SIZE = STR_RESULTS[6]
FILE.seek(ST_SIZE) FILE.seek(ST_SIZE)
while 1: while 1:
METRICS = []
WHERE = FILE.tell() WHERE = FILE.tell()
LINE = FILE.readline() LINE = FILE.readline()
if not LINE: if not LINE: