diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-01 21:44:09 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-01 21:44:09 +0800 |
commit | ac03ff6f055ef2bd9404a30a0c257fdd2722eafe (patch) | |
tree | 6cfcc4b9fb5a3371916df813974e767ea22ce88e /common | |
parent | 6e8ff578f18473d7c4fe013a88d2bece1ecf65d1 (diff) | |
download | dexon-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.go | 4 |
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) |