From 8d18b9c4ae632a3ba12d36297c1e55e6597c88a3 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Fri, 31 Mar 2017 22:20:43 +0200 Subject: [PATCH] Fix not using defined variable for match-access possibly leading to slower access-times --- tsstats/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsstats/log.py b/tsstats/log.py index 5196f32..ae6249a 100644 --- a/tsstats/log.py +++ b/tsstats/log.py @@ -94,7 +94,7 @@ def _bundle_logs(logs): key=lambda tl: tl.timestamp) else: # if not exists, just create a list - vserver_logfiles[match['sid']] = [tl] + vserver_logfiles[sid] = [tl] else: # fallback to plain sorting vserver_logfiles.setdefault('', [])\