<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="java.util.Date" %> <%@ page import="dk.thoerup.traininfoservice.Statistics" %> TrainInfoService statistics

TrainInfoService statistics

<% Statistics stats = Statistics.getInstance(); double days = stats.getElapsedDays(); %>
Current time: <%= new Date().toString() %>
Last reset: <%= stats.getLastReset().toString() %>
Elapsed <%= stats.getElapsedAsString() %>

Label Total Avg pr day
Station Lookups <%= stats.getStationTotals() %> <%= stats.getStationTotals()/days %>
--by Location <%=stats.getStationLookupsLocation() %> <%=stats.getStationLookupsLocation()/days %>
--by Name <%=stats.getStationLookupsName() %> <%=stats.getStationLookupsName()/days %>
--by Favorites <%=stats.getStationLookupsFavorites() %> <%=stats.getStationLookupsFavorites()/days %>
Departure Lookups <%=stats.getDepartureLookups() %> <%=stats.getDepartureLookups()/days %>
--cache hits <%=stats.getDepartureCacheHits() %> <%=stats.getDepartureCacheHits()/days %>
Timetable Lookups <%=stats.getTimetableLookups() %> <%=stats.getTimetableLookups()/days %>
--cache hits <%=stats.getTimetableCacheHits() %> <%=stats.getTimetableCacheHits()/days %>