From 6d9f2f2bdc2088f133cbeddb41abe9b3b86fdb6d Mon Sep 17 00:00:00 2001 From: Martin Langhoff Date: Tue, 24 Mar 2015 10:01:58 -0400 Subject: [PATCH] compresslog: fix unique_users-as-array buglet coming from a stray comma unique_users was being reported as list/array due to a stray comma in the code. Oooops! --- compresslog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compresslog b/compresslog index e54431a..ba739d1 100755 --- a/compresslog +++ b/compresslog @@ -133,7 +133,7 @@ class parse_stats: stats['pview_avg_us'] = sum(self.pf_pviews_time) / float(len(self.pf_pviews_time)) stats['pview_50th_us'] = self.percentile(self.pf_pviews_time, 0.5) stats['pview_80th_us'] = self.percentile(self.pf_pviews_time, 0.8) - stats['unique_users'] = len(self.ls_users), + stats['unique_users'] = len(self.ls_users) # passing separators explicitly gives us more compact encoding logger.info("stats %s" % json.dumps(stats, separators=(',',':'))) self._reset() -- 2.11.4.GIT