Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Ignore the upper bound if it is extremely big

  • Loading branch information...
commit c3a4db95c409ed2d0172c328a51e4dc9db4e0d28 1 parent 3388e10
Bin Cui bcui6611 authored

Showing 1 changed file with 8 additions and 8 deletions. Show diff stats Hide diff stats

  1. +8 8 collector.py
16 collector.py
@@ -163,16 +163,16 @@ def process_histogram_data(self, histogram_data):
163 163 dd = {}
164 164 totals = {}
165 165 for s in vals:
166   - if s[0][1] > util.BIG_VALUE or s[0][2] > util.BIG_VALUE:
167   - #Ignore infinite bucket from stats. it will skew the final result
168   - continue
  166 + if s[0][2] > util.BIG_VALUE:
  167 + # Ignore the upper bound if it is exemely big
  168 + avg = s[0][1]
169 169 else:
170 170 avg = (s[0][1] + s[0][2]) / 2
171   - k = s[0][0]
172   - l = dd.get(k, [])
173   - l.append((avg, s[1]))
174   - dd[k] = l
175   - totals[k] = totals.get(k, 0) + s[1]
  171 + k = s[0][0]
  172 + l = dd.get(k, [])
  173 + l.append((avg, s[1]))
  174 + dd[k] = l
  175 + totals[k] = totals.get(k, 0) + s[1]
176 176 return (dd, totals)
177 177
178 178 def get_mc_stats_per_node(self, mc, stats):

0 comments on commit c3a4db9

Please sign in to comment.
Something went wrong with that request. Please try again.