vmail 1.8.2 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- 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