From: proller Date: Tue, 5 Nov 2013 17:17:33 +0000 (+0400) Subject: Masterserver uptime fix X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=6f44492238c89079402a984466d037f4558924e6;p=zefram%2Fminetest%2Fminetest_engine.git Masterserver uptime fix --- diff --git a/util/master/list.js b/util/master/list.js index 2a831a26..59c12cd9 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 bf4a4bf5..3db07d05 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}}
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)}}