FileInfo: round bytes also
This commit is contained in:
parent
136f778743
commit
0877dc8b8a
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user