Skip to content

Commit

Permalink
Masterserver uptime fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Nov 5, 2013
1 parent 2e89209 commit 6f44492
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions util/master/list.js
Expand Up @@ -19,6 +19,7 @@ function humanTime(seconds) {
return (seconds / conv[i]).toFixed(1) + i;
}
}
return seconds + 's';
}

function escapeHTML(str) {
Expand Down
4 changes: 2 additions & 2 deletions util/master/servers.jst
Expand Up @@ -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>{{?}}
Expand All @@ -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}}
Expand Down

0 comments on commit 6f44492

Please sign in to comment.