Author: jfrederic.clere(a)jboss.com
Date: 2008-10-22 05:08:01 -0400 (Wed, 22 Oct 2008)
New Revision: 1980
Modified:
sandbox/mod_jk/TraceAna.java
Log:
Allow 0 offset value :-)
Modified: sandbox/mod_jk/TraceAna.java
===================================================================
--- sandbox/mod_jk/TraceAna.java 2008-10-22 09:07:12 UTC (rev 1979)
+++ sandbox/mod_jk/TraceAna.java 2008-10-22 09:08:01 UTC (rev 1980)
@@ -194,7 +194,7 @@
}
public static void main(String[] args) throws Exception {
- int offset = 0;
+ int offset = -1;
if (args.length < 1 && args.length > 2) {
System.err.println("missing command line arguments");
System.exit(1);
@@ -210,7 +210,7 @@
TraceAna buf = new TraceAna(8192);
/* Detect the "): 0000 " to find the offset of the dumped data */
String ins = in.readLine();
- if (offset == 0) {
+ if (offset == -1) {
offset = ins.indexOf("): 0000 ",0);
offset = offset + 11;
}
Show replies by date