aboutsummaryrefslogtreecommitdiff
path: root/util/master
diff options
context:
space:
mode:
authorproller <proler@github.com>2013-11-05 21:17:33 +0400
committerproller <proler@github.com>2013-11-05 21:18:37 +0400
commit6f44492238c89079402a984466d037f4558924e6 (patch)
tree798148226f9ba47383f627a1c6428e4af73bb68c /util/master
parent2e89209cf1902b93352f6eeeb8ac2c5d5fcb3b70 (diff)
downloadminetest-6f44492238c89079402a984466d037f4558924e6.tar.gz
minetest-6f44492238c89079402a984466d037f4558924e6.tar.bz2
minetest-6f44492238c89079402a984466d037f4558924e6.zip
Masterserver uptime fix
Diffstat (limited to 'util/master')
-rw-r--r--util/master/list.js1
-rw-r--r--util/master/servers.jst4
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 @@
<table>
<tr>
{{? !master.no_address}}<th>IP[:Port]</th>{{?}}
- {{? !master.no_clients}}<th>Players/Max</th>{{?}}
+ {{? !master.no_clients}}<th>Players/Max{{? !master.no_avgtop}}<br/>Avg/Top{{?}}</th>{{?}}
{{? !master.no_version}}<th>Version, Gameid, MapGen</th>{{?}}
{{? !master.no_name}}<th>Name</th>{{?}}
{{? !master.no_description}}<th>Description</th>{{?}}
@@ -25,7 +25,7 @@
</td>{{?}}
{{? !master.no_clients}}
<td class="clients{{? server.clients_list && server.clients_list.length > 0}} mts_hover_list_text{{?}}">
- {{=server.clients}}/{{=server.clients_max}} {{=server.clients_top}}
+ {{=server.clients}}/{{=server.clients_max}}{{? !master.no_avgtop}} &nbsp;&nbsp;{{=Math.floor(server.pop_v)}}/{{=server.clients_top}}{{?}}
{{=hoverList("Clients", server.clients_list)}}
</td>{{?}}
{{? !master.no_version}}