Fix tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
08c718da64
commit
c1795b0611
|
@ -571,7 +571,7 @@ var UserList = {
|
||||||
//asymptotic curve approaching 50% at 10GB to visualize used stace with infinite quota
|
//asymptotic curve approaching 50% at 10GB to visualize used stace with infinite quota
|
||||||
usedQuota = 95 * (1 - (1 / (usedInGB + 1)));
|
usedQuota = 95 * (1 - (1 / (usedInGB + 1)));
|
||||||
}
|
}
|
||||||
$tr.find('.quota-user-progress').val(usedQuota);
|
$tr.find('.quota-user-progress').val( isNaN(usedQuota) ? 0 : usedQuota );
|
||||||
if (usedQuota > 80) {
|
if (usedQuota > 80) {
|
||||||
$tr.find('.quota-user-progress').addClass('warn');
|
$tr.find('.quota-user-progress').addClass('warn');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue