1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Fix spelling mistakes in variable names

Thanks, codespell!
This commit is contained in:
Lars Kruse 2020-03-26 02:13:34 +01:00
parent 8713eb3722
commit f776b7e04f
5 changed files with 19 additions and 19 deletions

View file

@ -46,9 +46,9 @@ else:
log = logs[i]
error_count = 0
for line in file(log):
splitted = line.split()
if 'ConflictError' in splitted:
logdate = datetime(*time.strptime(splitted[0], date_format)[:-3])
tokens = line.split()
if 'ConflictError' in tokens:
logdate = datetime(*time.strptime(tokens[0], date_format)[:-3])
delta = datetime.now() - logdate
if delta.days >= 1:
continue