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