mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 14:42:24 +01:00
Masterserver uptime fix
This commit is contained in:
parent
2e89209cf1
commit
6f44492238
@ -19,6 +19,7 @@ function humanTime(seconds) {
|
|||||||
return (seconds / conv[i]).toFixed(1) + i;
|
return (seconds / conv[i]).toFixed(1) + i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return seconds + 's';
|
||||||
}
|
}
|
||||||
|
|
||||||
function escapeHTML(str) {
|
function escapeHTML(str) {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
{{? !master.no_address}}<th>IP[:Port]</th>{{?}}
|
{{? !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_version}}<th>Version, Gameid, MapGen</th>{{?}}
|
||||||
{{? !master.no_name}}<th>Name</th>{{?}}
|
{{? !master.no_name}}<th>Name</th>{{?}}
|
||||||
{{? !master.no_description}}<th>Description</th>{{?}}
|
{{? !master.no_description}}<th>Description</th>{{?}}
|
||||||
@ -25,7 +25,7 @@
|
|||||||
</td>{{?}}
|
</td>{{?}}
|
||||||
{{? !master.no_clients}}
|
{{? !master.no_clients}}
|
||||||
<td class="clients{{? server.clients_list && server.clients_list.length > 0}} mts_hover_list_text{{?}}">
|
<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}} {{=Math.floor(server.pop_v)}}/{{=server.clients_top}}{{?}}
|
||||||
{{=hoverList("Clients", server.clients_list)}}
|
{{=hoverList("Clients", server.clients_list)}}
|
||||||
</td>{{?}}
|
</td>{{?}}
|
||||||
{{? !master.no_version}}
|
{{? !master.no_version}}
|
||||||
|
Loading…
Reference in New Issue
Block a user