]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Add CTS support to the scoreboard.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 26 Jan 2013 17:49:33 +0000 (12:49 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 26 Jan 2013 17:49:33 +0000 (12:49 -0500)
xonstat/templates/scoreboard.mako

index d5d04b39562fd071acde28324beee203f3cbbd75..391d90431abc232648851b17da9a2a59507f6fef 100644 (file)
@@ -103,7 +103,7 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
       % if show_latency:
       <th class="ping">Ping</th>
       % endif
-      <th class="fastest">Fastest Lap</th>
+      <th class="fastest">Fastest Time</th>
       <th class="deaths">Deaths</th>
     </tr>
     </thead>
@@ -171,7 +171,7 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
 % endif
 
 % if game_type_cd == 'cts':
-        <td>${pgstat.fastest}</td>
+        <td>${round(float(pgstat.fastest.seconds) + (pgstat.fastest.microseconds/1000000.0), 2)}</td>
         <td>${pgstat.deaths}</td>
 % endif