Fixed an off-by-one error (two of them actually)

This commit is contained in:
Natty 2023-09-03 01:15:59 +02:00
parent ff0f81d475
commit 87d785560f
No known key found for this signature in database
GPG key ID: BF6CB659ADEE60EC

View file

@ -1083,6 +1083,7 @@ function showConnections(localUser, connectionList) {
let udNum = 0; let udNum = 0;
if (i > numb[0]) udNum = 1; if (i > numb[0]) udNum = 1;
if (i > numb[0] + numb[1]) udNum = 2; if (i > numb[0] + numb[1]) udNum = 2;
if (i <= numb[0] + numb[1] + numb[2])
usersDivs[udNum].appendChild(newUser); usersDivs[udNum].appendChild(newUser);
} }