/[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 959 by torben, Mon Jul 5 09:28:40 2010 UTC revision 960 by torben, Mon Jul 5 13:53:37 2010 UTC
# Line 124  public class ShowStats extends HttpServl Line 124  public class ShowStats extends HttpServl
124                                  count = Math.min(10, commentsCb.getEntryCount() );                                  count = Math.min(10, commentsCb.getEntryCount() );
125                                                    
126                          //log.warning("count=" + count + " start=" + start + " entryCount=" + commentsCb.getEntryCount() );                          //log.warning("count=" + count + " start=" + start + " entryCount=" + commentsCb.getEntryCount() );
127                          CommentsRequest commentsRequest = buildCommentRequest(appId,start,count);                                                for (int i=0; i<5;i++) {
128                          session.append(commentsRequest, commentsCb);                                  CommentsRequest commentsRequest = buildCommentRequest(appId,start,count);                      
129                          start +=10;                                  session.append(commentsRequest, commentsCb);
130                                    start +=10;
131                            }
132                                                    
                         CommentsRequest commentsRequest2 = buildCommentRequest(appId,start,count);                        
                         session.append(commentsRequest2, commentsCb);  
133                          session.flush();                          session.flush();
134                                                                            
                         start +=10;  
                           
135                          if (start >= MAXCOMMENTS)                          if (start >= MAXCOMMENTS)
136                                  break; //emergency brake                                  break; //emergency brake
137                                                    

Legend:
Removed from v.959  
changed lines
  Added in v.960

  ViewVC Help
Powered by ViewVC 1.1.20