Implemented issue #953 - More precise filesize.
This commit is contained in:
parent
b3ae159c2e
commit
a9b9cdc01d
1 changed files with 1 additions and 1 deletions
|
@ -635,7 +635,7 @@ class App.Utils
|
||||||
# human readable file size
|
# human readable file size
|
||||||
@humanFileSize: (size) ->
|
@humanFileSize: (size) ->
|
||||||
if size > ( 1024 * 1024 )
|
if size > ( 1024 * 1024 )
|
||||||
size = Math.round( size / ( 1024 * 1024 ) ) + ' MB'
|
size = (Math.round( size * 10 / ( 1024 * 1024 ) ) / 10 ) + ' MB'
|
||||||
else if size > 1024
|
else if size > 1024
|
||||||
size = Math.round( size / 1024 ) + ' KB'
|
size = Math.round( size / 1024 ) + ' KB'
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue