From d5970868f76ad0bc2bd5187eeea50f50a382749e Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 11 Dec 2020 20:38:39 +0530 Subject: [PATCH] use the correct order of magnitude when editing an existing user quota --- www/admin/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/admin/inner.js b/www/admin/inner.js index c1f2ccb9d..955ba4faf 100644 --- a/www/admin/inner.js +++ b/www/admin/inner.js @@ -347,7 +347,7 @@ define([ var keyEl = h('code.cp-limit-key', key); $(keyEl).click(function () { $('.cp-admin-setlimit-form').find('.cp-setlimit-key').val(key); - $('.cp-admin-setlimit-form').find('.cp-setlimit-quota').val(Math.floor(user.limit/1024)); + $('.cp-admin-setlimit-form').find('.cp-setlimit-quota').val(Math.floor(user.limit / 1024 / 1024)); $('.cp-admin-setlimit-form').find('.cp-setlimit-note').val(user.note); }); if (compact) {