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

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

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

revision 1021 by torben, Mon Jul 5 09:49:53 2010 UTC revision 1022 by torben, Mon Aug 30 15:49:20 2010 UTC
# Line 23  public class StatisticsListener implemen Line 23  public class StatisticsListener implemen
23                    
24          log.info("StatisticsListener::contextInit called update_interval=" + update_interval);          log.info("StatisticsListener::contextInit called update_interval=" + update_interval);
25                    
26            if (! sce.getServletContext().getRealPath("/").startsWith("/home/app/")  ) {
27                    //if path not starts with /home/app then it is not running on a production server and we only collects stats on prod servers
28                    return;
29            }
30            
31          if ( update_interval > 0 ) {          if ( update_interval > 0 ) {
32                  timer =  new Timer();                  timer =  new Timer();
33                                    

Legend:
Removed from v.1021  
changed lines
  Added in v.1022

  ViewVC Help
Powered by ViewVC 1.1.20