vmail 1.8.2 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/vmail/helpers.rb +1 -1
- data/lib/vmail/version.rb +1 -1
- metadata +1 -1
data/lib/vmail/helpers.rb
CHANGED
@@ -16,7 +16,7 @@ module Vmail
|
|
16
16
|
# borrowed from ActionView/Helpers
|
17
17
|
def number_to_human_size(number)
|
18
18
|
if number.to_i < 1024
|
19
|
-
"<
|
19
|
+
"< 1k" # round up to 1kh
|
20
20
|
else
|
21
21
|
max_exp = UNITS.size - 1
|
22
22
|
exponent = (Math.log(number) / Math.log(1024)).to_i # Convert to base 1024
|
data/lib/vmail/version.rb
CHANGED