/[projects]/android/TrainInfoService/WebContent/statistics.jsp
ViewVC logotype

Diff of /android/TrainInfoService/WebContent/statistics.jsp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 711 by torben, Wed May 5 20:11:03 2010 UTC revision 965 by torben, Wed Jul 7 11:50:34 2010 UTC
# Line 2  Line 2 
2      pageEncoding="UTF-8"%>      pageEncoding="UTF-8"%>
3  <%@ page import="java.util.Date" %>  <%@ page import="java.util.Date" %>
4  <%@ page import="dk.thoerup.traininfoservice.Statistics" %>  <%@ page import="dk.thoerup.traininfoservice.Statistics" %>
5    <%@page import="java.text.NumberFormat"%>
6  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
7    
8  <html>  <html>
9  <head>  <head>
10  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
# Line 19  Line 21 
21  <%  <%
22  Statistics stats = Statistics.getInstance();  Statistics stats = Statistics.getInstance();
23  double days = stats.getElapsedDays();  double days = stats.getElapsedDays();
24    NumberFormat form = NumberFormat.getNumberInstance();
25    form.setMaximumFractionDigits(1);
26    form.setMinimumFractionDigits(1);
27    
28  %>  %>
29    
# Line 40  double days = stats.getElapsedDays(); Line 45  double days = stats.getElapsedDays();
45  <br>  <br>
46  <table border="1" cellspacing="0">  <table border="1" cellspacing="0">
47          <tr>          <tr>
48                  <th>Label</th>                  <th>&nbsp;Label&nbsp;</th>
49                  <th>Total</th>                  <th>&nbsp;Total&nbsp;</th>
50                  <th>Avg pr day</th>                  <th>&nbsp;Avg/day&nbsp;</th>
51          </tr>          </tr>
52          <tr>          <tr>
53                  <td class="left">Station Lookups</td>                  <td class="left">Station Lookups</td>
54                  <td><%= stats.getStationTotals() %></td>                  <td><%= stats.getStationTotals() %></td>
55                  <td><%= stats.getStationTotals()/days %></td>                  <td><%= form.format(stats.getStationTotals()/days) %></td>
56          </tr>          </tr>
57          <tr>          <tr>
58                  <td class="left">--by Location</td>                  <td class="left">--by Location</td>
59                  <td><%=stats.getStationLookupsLocation() %></td>                  <td><%= stats.getStationLookupsLocation() %></td>
60                  <td><%=stats.getStationLookupsLocation()/days %></td>                  <td><%= form.format(stats.getStationLookupsLocation()/days) %></td>
61          </tr>          </tr>
62          <tr>          <tr>
63                  <td class="left">--by Name</td>                  <td class="left">--by Name</td>
64                  <td><%=stats.getStationLookupsName() %></td>                  <td><%= stats.getStationLookupsName() %></td>
65                  <td><%=stats.getStationLookupsName()/days %></td>                  <td><%= form.format(stats.getStationLookupsName()/days) %></td>
66          </tr>          </tr>
67          <tr>          <tr>
68                  <td class="left">--by Favorites</td>                  <td class="left">--by Favorites</td>
69                  <td><%=stats.getStationLookupsFavorites() %></td>                  <td><%= stats.getStationLookupsFavorites() %></td>
70                  <td><%=stats.getStationLookupsFavorites()/days %></td>                  <td><%= form.format(stats.getStationLookupsFavorites()/days) %></td>
71          </tr>          </tr>
72          <tr>          <tr>
73                  <td class="left">Departure Lookups</td>                  <td class="left">Departure Lookups</td>
74                  <td><%=stats.getDepartureLookups() %></td>                  <td><%= stats.getDepartureLookups() %></td>
75                  <td><%=stats.getDepartureLookups()/days %></td>                  <td><%= form.format(stats.getDepartureLookups()/days) %></td>
76          </tr>          </tr>
77          <tr>          <tr>
78                  <td class="left">--cache hits</td>                  <td class="left">--cache hits</td>
79                  <td><%=stats.getDepartureCacheHits() %></td>                  <td><%= stats.getDepartureCacheHits() %></td>
80                  <td><%=stats.getDepartureCacheHits()/days %></td>                  <td><%= form.format(stats.getDepartureCacheHits()/days) %></td>
81            </tr>
82            <tr>
83                    <td class="left">--failed</td>
84                    <td><%= stats.getDepartureErrors() %></td>
85                    <td><%= form.format(stats.getDepartureErrors()/days) %></td>
86          </tr>          </tr>
87          <tr>          <tr>
88                  <td class="left">Timetable Lookups</td>                  <td class="left">Timetable Lookups</td>
89                  <td><%=stats.getTimetableLookups() %></td>                  <td><%= stats.getTimetableLookups() %></td>
90                  <td><%=stats.getTimetableLookups()/days %></td>                  <td><%= form.format(stats.getTimetableLookups()/days) %></td>
91          </tr>          </tr>
92          <tr>          <tr>
93                  <td class="left">--cache hits</td>                  <td class="left">--cache hits</td>
94                  <td><%=stats.getTimetableCacheHits() %></td>                  <td><%= stats.getTimetableCacheHits() %></td>
95                  <td><%=stats.getTimetableCacheHits()/days %></td>                  <td><%= form.format(stats.getTimetableCacheHits()/days) %></td>
96          </tr>          </tr>
97            <tr>
98                    <td class="left">--failed</td>
99                    <td><%= stats.getTimetableErrors() %></td>
100                    <td><%= form.format(stats.getTimetableErrors()/days) %></td>
101            </tr>  
102  </table>  </table>
103    
104    <h2>Persistant statistics</h2>
105    <a href="SavedStatistics">Saved stats</a><br>
106  </body>  </body>
107  </html>  </html>

Legend:
Removed from v.711  
changed lines
  Added in v.965

  ViewVC Help
Powered by ViewVC 1.1.20