From 382357d61cde9d6d1b3cb94053ab1127db9d5462 Mon Sep 17 00:00:00 2001 From: proller Date: Fri, 18 Oct 2013 21:56:34 +0400 Subject: Masterserver totals fix --- util/master/list.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'util/master/list.js') diff --git a/util/master/list.js b/util/master/list.js index b5974619a..4e2104bc8 100644 --- a/util/master/list.js +++ b/util/master/list.js @@ -48,10 +48,8 @@ function human_time(t, abs) { function success(r) { if (!r || !r.list) return; var h = ''; - if (!master.no_total && r.total) - h += '
Now players: ' + r.total.clients + ' servers: ' + r.total.servers + '
'; - if (!master.no_total_max && r.total_max) - h += '
Max players: ' + r.total_max.clients + ' servers: ' + r.total_max.servers + '
'; + if (!master.no_total && r.total && r.total_max) + h += '
Players: ' + r.total.clients + ('/' + r.total_max.clients) + ' servers: ' + r.total.servers + ('/' + r.total_max.servers) + '
'; h += ''; if (r.list.length) { h += ''; -- cgit v1.2.3