From 250ce20feef6e052025b124dc4e1bc844a9cf9a9 Mon Sep 17 00:00:00 2001 From: Hu Keping Date: Wed, 24 Jun 2015 00:45:34 +0800 Subject: [PATCH] Remove useless conversion It is already type float. Signed-off-by: Hu Keping --- pkg/units/size.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/units/size.go b/pkg/units/size.go index d7850ad0b0..9e84697caf 100644 --- a/pkg/units/size.go +++ b/pkg/units/size.go @@ -51,7 +51,7 @@ func CustomSize(format string, size float64, base float64, _map []string) string // HumanSize returns a human-readable approximation of a size // using SI standard (eg. "44kB", "17MB") func HumanSize(size float64) string { - return CustomSize("%.4g %s", float64(size), 1000.0, decimapAbbrs) + return CustomSize("%.4g %s", size, 1000.0, decimapAbbrs) } func BytesSize(size float64) string {