mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(directory) percent: when percent should not change it became bigger by 100
This commit is contained in:
parent
36954a0ae2
commit
a6a0e40df0
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@
|
|||
function percent(i, n, per) {
|
||||
var value;
|
||||
|
||||
if (!per)
|
||||
if (typeof per === 'undefined')
|
||||
per = 100;
|
||||
|
||||
value = Math.round(i * per / n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue