Skip to content

Commit

Permalink
correctly initialize self.current_mbc
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoleman17 committed Apr 3, 2014
1 parent 05c00c2 commit d8e8b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def __init__(self, hostname, interval=1.0, expiry_seconds=300, formatter=None, r
self.metric_by_bucket = {}
self.last_sample_time_by_context = {}
self.current_bucket = None
self.current_mbc = None
self.current_mbc = {}
self.last_flush_cutoff_time = 0
self.metric_type_to_class = {
'g': BucketGauge,
Expand Down Expand Up @@ -577,7 +577,7 @@ def flush(self):
self.total_count += self.count
self.count = 0
self.current_bucket = None
self.current_mbc = None
self.current_mbc = {}
self.last_flush_cutoff_time = flush_cutoff_time
return metrics

Expand Down

0 comments on commit d8e8b3e

Please sign in to comment.