aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-01 21:44:09 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-01 21:44:09 +0800
commitac03ff6f055ef2bd9404a30a0c257fdd2722eafe (patch)
tree6cfcc4b9fb5a3371916df813974e767ea22ce88e /common
parent6e8ff578f18473d7c4fe013a88d2bece1ecf65d1 (diff)
downloaddexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.tar
dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.tar.gz
dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.tar.bz2
dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.tar.lz
dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.tar.xz
dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.tar.zst
dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.zip
Fix block size output #613
Diffstat (limited to 'common')
-rw-r--r--common/size.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/size.go b/common/size.go
index b5c0b0b3f..0d9dbf558 100644
--- a/common/size.go
+++ b/common/size.go
@@ -17,6 +17,10 @@ func (self StorageSize) String() string {
}
}
+func (self StorageSize) Int64() int64 {
+ return int64(self)
+}
+
// The different number of units
var (
Douglas = BigPow(10, 42)