Skip to content

Commit

Permalink
Always use decimals with mcsoda
Browse files Browse the repository at this point in the history
Change-Id: Ie0e55bfb13d4e13cc8c77b035e3efdd4510502aa
Reviewed-on: http://review.couchbase.org/10701
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Karan Kumar <karan@couchbase.com>
  • Loading branch information
steveyen authored and kkumar86 committed Nov 8, 2011
1 parent 73b647f commit 26fe055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytests/performance/mcsoda.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def histo_percentile(self, histo, percentiles):
keys = histo.keys()
min_bin = round(min(keys), 6)
max_bin = round(max(keys), 6)
bin_precision = int(len(str(min_bin).split('.')[1]))
bin_precision = int(len(("%f" % (min_bin,)).split('.')[1]))
step = round(pow(10, -bin_precision), 6)
list = self.drange(min_bin, max_bin, step)
bins = [x for x in list]
Expand Down

0 comments on commit 26fe055

Please sign in to comment.