fixed multiple issues with the /signin page. #935 #936 #937

This commit is contained in:
Danny Coates 2018-09-24 12:01:39 -07:00
parent d34ff79fd7
commit c8bf3101aa
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
7 changed files with 35 additions and 24 deletions

View file

@ -60,7 +60,7 @@ function bytes(num) {
return '0B';
}
const exponent = Math.min(Math.floor(Math.log10(num) / 3), UNITS.length - 1);
const n = Number(num / Math.pow(1000, exponent));
const n = Number(num / Math.pow(1024, exponent));
let nStr = n.toFixed(1);
if (LOCALIZE_NUMBERS) {
try {