FileInfo: round bytes also

This commit is contained in:
ccd0 2014-06-29 00:16:20 -07:00
parent 136f778743
commit 0877dc8b8a

View File

@ -49,7 +49,8 @@ FileInfo =
s: (x) ->
x.innerHTML += E @file.size
B: (x) ->
x.innerHTML += "#{+@file.sizeInBytes} Bytes"
sizeB = Math.round(@file.sizeInBytes)
x.innerHTML += "#{+sizeB} Bytes"
K: (x) ->
sizeKB = Math.round(@file.sizeInBytes/1024)
x.innerHTML += "#{+sizeKB} KB"