Moved to short form for file size.

This commit is contained in:
Martin Edenhofer 2015-01-29 09:51:32 +01:00
parent 13537ebd1f
commit fd022ee01c

View file

@ -161,9 +161,9 @@ class App.Controller extends Spine.Controller
# 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 ) ) + ' MBytes' size = Math.round( size / ( 1024 * 1024 ) ) + ' MB'
else if size > 1024 else if size > 1024
size = Math.round( size / 1024 ) + ' KBytes' size = Math.round( size / 1024 ) + ' KB'
else else
size = size + ' Bytes' size = size + ' Bytes'
size size