diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-28 11:12:52 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-28 11:12:52 +0200 |
commit | c1795b0611875b309ad099e285fdfd54dad91804 (patch) | |
tree | 14ecaab872481d5faab88d689638a98b062b324c /settings/js/users | |
parent | 08c718da6458681bb70047342d77a91badb7e74a (diff) | |
download | nextcloud-server-c1795b0611875b309ad099e285fdfd54dad91804.tar.gz nextcloud-server-c1795b0611875b309ad099e285fdfd54dad91804.zip |
Fix tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/js/users')
-rw-r--r-- | settings/js/users/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 8b97485e1b2..f0ba433e862 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -571,7 +571,7 @@ var UserList = { //asymptotic curve approaching 50% at 10GB to visualize used stace with infinite quota 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) { $tr.find('.quota-user-progress').addClass('warn'); } else { |