fix 2 typos in tsstats.log._bundle_logs
This commit is contained in:
parent
976d40e2b9
commit
9a6bbe4f3e
|
@ -60,12 +60,13 @@ def _bundle_logs(logs):
|
||||||
if match:
|
if match:
|
||||||
match = match.groupdict()
|
match = match.groupdict()
|
||||||
timestamp = datetime.strptime('{0} {1}'.format(
|
timestamp = datetime.strptime('{0} {1}'.format(
|
||||||
match['date'], match['time'].replace('_', ':')))
|
match['date'], match['time'].replace('_', ':')),
|
||||||
|
log_timestamp_format)
|
||||||
tl = TimedLog(log, timestamp)
|
tl = TimedLog(log, timestamp)
|
||||||
sid = match['sid']
|
sid = match['sid']
|
||||||
if sid in vserver_logfiles:
|
if sid in vserver_logfiles:
|
||||||
# if already exists, keep list sorted by timestamp
|
# if already exists, keep list sorted by timestamp
|
||||||
vserver_logfiles[sid].apppend(tl)
|
vserver_logfiles[sid].append(tl)
|
||||||
vserver_logfiles[sid] =\
|
vserver_logfiles[sid] =\
|
||||||
sorted(vserver_logfiles[sid],
|
sorted(vserver_logfiles[sid],
|
||||||
key=lambda tl: tl.timestamp)
|
key=lambda tl: tl.timestamp)
|
||||||
|
|
Loading…
Reference in New Issue