FileInfo: round bytes also
This commit is contained in:
parent
136f778743
commit
0877dc8b8a
@ -49,7 +49,8 @@ FileInfo =
|
|||||||
s: (x) ->
|
s: (x) ->
|
||||||
x.innerHTML += E @file.size
|
x.innerHTML += E @file.size
|
||||||
B: (x) ->
|
B: (x) ->
|
||||||
x.innerHTML += "#{+@file.sizeInBytes} Bytes"
|
sizeB = Math.round(@file.sizeInBytes)
|
||||||
|
x.innerHTML += "#{+sizeB} Bytes"
|
||||||
K: (x) ->
|
K: (x) ->
|
||||||
sizeKB = Math.round(@file.sizeInBytes/1024)
|
sizeKB = Math.round(@file.sizeInBytes/1024)
|
||||||
x.innerHTML += "#{+sizeKB} KB"
|
x.innerHTML += "#{+sizeKB} KB"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user