fix progress bar
This commit is contained in:
parent
9bba32a197
commit
e02b766ab2
@ -59,7 +59,7 @@ with open(args.logs, 'r') as file:
|
|||||||
progress = tqdm(total=file_len, unit='b', unit_scale=2)
|
progress = tqdm(total=file_len, unit='b', unit_scale=2)
|
||||||
for line in file:
|
for line in file:
|
||||||
l = line.strip()
|
l = line.strip()
|
||||||
progress.update(len(line))
|
progress.update(len(line)+1)
|
||||||
(is_parsed, year, month, day, hour, minute, second) = _parse(l)
|
(is_parsed, year, month, day, hour, minute, second) = _parse(l)
|
||||||
if is_parsed:
|
if is_parsed:
|
||||||
if first_line is None:
|
if first_line is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user