/[projects]/android/MarketStats/src/dk/thoerup/marketstats/ShowStats.java
ViewVC logotype

Diff of /android/MarketStats/src/dk/thoerup/marketstats/ShowStats.java

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

revision 758 by torben, Thu May 27 08:57:57 2010 UTC revision 761 by torben, Thu May 27 11:26:05 2010 UTC
# Line 4  import java.io.IOException; Line 4  import java.io.IOException;
4  import java.io.PrintWriter;  import java.io.PrintWriter;
5  import java.net.InetSocketAddress;  import java.net.InetSocketAddress;
6  import java.util.ArrayList;  import java.util.ArrayList;
 import java.util.Collections;  
7  import java.util.Date;  import java.util.Date;
8  import java.util.Locale;  import java.util.Locale;
9  import java.util.logging.Logger;  import java.util.logging.Logger;
# Line 51  public class ShowStats extends HttpServl Line 50  public class ShowStats extends HttpServl
50          protected String doLookup(String query) throws IOException {          protected String doLookup(String query) throws IOException {
51                                    
52    
53                  String key = "marketstats:" + query;                  String key = "marketstats:" + query.replace(' ', '_');
54                  String response = (String) memcache.get(key);                  String response = (String) memcache.get(key);
55    
56                  if (response == null) {                  if (response == null) {
# Line 138  public class ShowStats extends HttpServl Line 137  public class ShowStats extends HttpServl
137                          }                          }
138                          sb.append("Comments: " + commentBeans.size() + "\n");                          sb.append("Comments: " + commentBeans.size() + "\n");
139                  }                  }
140                  sb.append("Cache.Timeout=" + TIMEOUT/60 + " minutes");                            sb.append("<!--Cache.Timeout=" + TIMEOUT/60 + " minutes-->\n");        
141    
142    
143                  return sb.toString();                  return sb.toString();

Legend:
Removed from v.758  
changed lines
  Added in v.761

  ViewVC Help
Powered by ViewVC 1.1.20