fix progressText
This commit is contained in:
parent
b4dfeb8624
commit
ddb6eee9e8
|
@ -65,8 +65,9 @@ isBrowser = (req) ->
|
||||||
|
|
||||||
# Process progress text
|
# Process progress text
|
||||||
progressText = (progress) ->
|
progressText = (progress) ->
|
||||||
txt = (progress * 100).toFixed(2) + "%"
|
progress = progress * 100
|
||||||
if progress < 0.1
|
txt = progress.toFixed(2) + "%"
|
||||||
|
if progress < 10
|
||||||
"0" + txt
|
"0" + txt
|
||||||
else
|
else
|
||||||
txt
|
txt
|
||||||
|
|
Loading…
Reference in a new issue