/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/SavedStatistics.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/SavedStatistics.java

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

revision 967 by torben, Wed Jul 7 16:08:04 2010 UTC revision 968 by torben, Wed Jul 7 18:54:52 2010 UTC
# Line 53  public class SavedStatistics extends Htt Line 53  public class SavedStatistics extends Htt
53                          String sqlAvg = "SELECT count(*) AS count, round(avg(location+name+favorites),1) AS station, round(avg(location),1) as location, round(avg(name),1) as name, round(avg(favorites),1) as favorites, " +                          String sqlAvg = "SELECT count(*) AS count, round(avg(location+name+favorites),1) AS station, round(avg(location),1) as location, round(avg(name),1) as name, round(avg(favorites),1) as favorites, " +
54                          "round(avg(departure),1) as departure, round(avg(depcache),1) as depcache, round(avg(deperror),1) as deperror, " +                          "round(avg(departure),1) as departure, round(avg(depcache),1) as depcache, round(avg(deperror),1) as deperror, " +
55                          "round(avg(timetable),1) as timetable, round(avg(timecache),1) as timecache, round(avg(timeerror),1) as timeerror " +                          "round(avg(timetable),1) as timetable, round(avg(timecache),1) as timecache, round(avg(timeerror),1) as timeerror " +
56                          "FROM trainstatistics";                          "FROM trainstatistics " +
57                            "WHERE statisticsdate <> now()::date ";
58                                                    
59                          ResultSet resAvg = stmt.executeQuery(sqlAvg);                          ResultSet resAvg = stmt.executeQuery(sqlAvg);
60                          resAvg.next();                          resAvg.next();

Legend:
Removed from v.967  
changed lines
  Added in v.968

  ViewVC Help
Powered by ViewVC 1.1.20