/[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 756 by torben, Thu May 27 08:07:28 2010 UTC revision 757 by torben, Thu May 27 08:51:59 2010 UTC
# Line 78  public class ShowStats extends HttpServl Line 78  public class ShowStats extends HttpServl
78                          if (start > 0)                                                    if (start > 0)                          
79                                  count = Math.min(10, commentsCb.getEntryCount() );                                  count = Math.min(10, commentsCb.getEntryCount() );
80                                                    
81                          //log.warning("count=" + count + " start=" + start );                          //log.warning("count=" + count + " start=" + start + " entryCount=" + commentsCb.getEntryCount() );
82                          CommentsRequest commentsRequest = CommentsRequest.newBuilder()                          CommentsRequest commentsRequest = CommentsRequest.newBuilder()
83                          .setAppId(appId)                          .setAppId(appId)
84                          .setStartIndex(start)                          .setStartIndex(start)
# Line 89  public class ShowStats extends HttpServl Line 89  public class ShowStats extends HttpServl
89                          session.flush();                          session.flush();
90                          start +=10;                          start +=10;
91                                                    
92                          if (start >= 50)                          if (start >= 200)
93                                  break; //emergency brake                                  break; //emergency brake
94                                                    
95                  } while ( start < commentsCb.getEntryCount() );                  } while ( start < commentsCb.getEntryCount() );
# Line 149  public class ShowStats extends HttpServl Line 149  public class ShowStats extends HttpServl
149    
150                  response.setContentType("text/html");                  response.setContentType("text/html");
151                  PrintWriter out = response.getWriter();                  PrintWriter out = response.getWriter();
152                  out.print( "<html><body><pre>" + doLookup(query) + "</pre></body></html>" );                  out.print( "<html><body><pre>" + doLookupWorker(query) + "</pre></body></html>" );
153          }          }
154    
155  }  }

Legend:
Removed from v.756  
changed lines
  Added in v.757

  ViewVC Help
Powered by ViewVC 1.1.20