From 6f44492238c89079402a984466d037f4558924e6 Mon Sep 17 00:00:00 2001 From: proller Date: Tue, 5 Nov 2013 21:17:33 +0400 Subject: [PATCH] Masterserver uptime fix --- util/master/list.js | 1 + util/master/servers.jst | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/util/master/list.js b/util/master/list.js index 2a831a268..59c12cd9e 100644 --- a/util/master/list.js +++ b/util/master/list.js @@ -19,6 +19,7 @@ function humanTime(seconds) { return (seconds / conv[i]).toFixed(1) + i; } } + return seconds + 's'; } function escapeHTML(str) { diff --git a/util/master/servers.jst b/util/master/servers.jst index bf4a4bf54..3db07d05a 100644 --- a/util/master/servers.jst +++ b/util/master/servers.jst @@ -7,7 +7,7 @@ {{? !master.no_address}}{{?}} - {{? !master.no_clients}}{{?}} + {{? !master.no_clients}}{{?}} {{? !master.no_version}}{{?}} {{? !master.no_name}}{{?}} {{? !master.no_description}}{{?}} @@ -25,7 +25,7 @@ {{?}} {{? !master.no_clients}} {{?}} {{? !master.no_version}} -- 2.25.1
IP[:Port]Players/MaxPlayers/Max{{? !master.no_avgtop}}
Avg/Top{{?}}
Version, Gameid, MapGenNameDescription - {{=server.clients}}/{{=server.clients_max}} {{=server.clients_top}} + {{=server.clients}}/{{=server.clients_max}}{{? !master.no_avgtop}}   {{=Math.floor(server.pop_v)}}/{{=server.clients_top}}{{?}} {{=hoverList("Clients", server.clients_list)}}