diff options
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) |