formatters.js: Fix a typo

This commit is contained in:
Luke Bakken 2018-10-19 13:21:45 -07:00 committed by Jean-Sébastien Pédron
parent 67321a130a
commit a08229d3b5
1 changed files with 2 additions and 2 deletions

View File

@ -201,10 +201,10 @@ function fmt_sync_state(queue) {
function fmt_members(queue) { function fmt_members(queue) {
var res = ''; var res = '';
var IsMayority = (queue.online.length >= (Math.floor(queue.members.length / 2) + 1)); var isMajority = (queue.online.length >= (Math.floor(queue.members.length / 2) + 1));
var followers = queue.online; var followers = queue.online;
followers.splice(followers.indexOf(queue.node), 1); followers.splice(followers.indexOf(queue.node), 1);
if (IsMayority) { if (isMajority) {
res += ' <abbr title="Followers: ' + followers + '">+' + res += ' <abbr title="Followers: ' + followers + '">+' +
followers.length + '</abbr>'; followers.length + '</abbr>';
} else { } else {