summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/utils.go b/utils/utils.go
index 9afd7d7..046e791 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -4,14 +4,14 @@ import (
"math"
)
-func BytesToKB(b uint64) uint64 {
- return uint64((float64(b) / math.Pow10(3)))
+func BytesToKB(b uint64) float64 {
+ return float64(b) / math.Pow10(3)
}
-func BytesToMB(b uint64) uint64 {
- return uint64((float64(b) / math.Pow10(6)))
+func BytesToMB(b uint64) float64 {
+ return float64(b) / math.Pow10(6)
}
-func BytesToGB(b uint64) uint64 {
- return uint64((float64(b) / math.Pow10(9)))
+func BytesToGB(b uint64) float64 {
+ return float64(b) / math.Pow10(9)
}