/[projects]/android/TrainInfoService/src/main/webapp/namesearch.jsp
ViewVC logotype

Diff of /android/TrainInfoService/src/main/webapp/namesearch.jsp

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

revision 1431 by torben, Mon May 2 19:28:02 2011 UTC revision 1802 by torben, Tue May 15 12:26:52 2012 UTC
# Line 10  Line 10 
10  <tr><th width=150>IP</th><th width=200></th><th>name</th></tr>  <tr><th width=150>IP</th><th width=200></th><th>name</th></tr>
11  <%  <%
12    
 File files[] = RequestPlotter.getFiles(30);  
13    
14    int count = 14;
15    if (request.getParameter("count") != null) {
16            count = Integer.parseInt( request.getParameter("count") );
17    }
18    
19    File files[] = RequestPlotter.getFiles(count);
20    
21  for (File f : files ) {  for (File f : files ) {
22          if ( !f.exists() ) {          if ( !f.exists() ) {
# Line 31  for (File f : files ) { Line 36  for (File f : files ) {
36                  if (line.indexOf("name=") == -1 ) {                  if (line.indexOf("name=") == -1 ) {
37                          continue;                          continue;
38                  }                  }
39                    if (line.indexOf("dummy") != -1) { //ignore dummy requests
40                            continue;
41                    }
42    
43                  String parts[] = line.split(" ");                  String parts[] = line.split(" ");
44                  String ip = parts[0].replace("\"", "");                  String ip = parts[0].replace("\"", "");
45                  String date = parts[2].replace("\"", "");                  String date = parts[2].replace("\"", "");

Legend:
Removed from v.1431  
changed lines
  Added in v.1802

  ViewVC Help
Powered by ViewVC 1.1.20