From 3440b100a1cc7d97775be08317002aaedf5fcc29 Mon Sep 17 00:00:00 2001 From: Nan Deng Date: Thu, 12 Jun 2014 11:45:38 -0700 Subject: [PATCH] remove float opts. --- info/container_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/info/container_test.go b/info/container_test.go index 88d182d0..b2bbb524 100644 --- a/info/container_test.go +++ b/info/container_test.go @@ -78,9 +78,9 @@ func TestPercentiles(t *testing.T) { ss := uint64Slice(data).Percentiles(ps...) for i, s := range ss { p := ps[i] - d := uint64(float64(N) * (float64(p) / 100.0)) + d := uint64(N * p / 100) if d != s { - t.Errorf("%v \\%tile data should be %v, but got %v", float64(p)/100.0, d, s) + t.Errorf("%v percentile data should be %v, but got %v", p, d, s) } } }