Index: support/ab.c
===================================================================
RCS file: /home/cvs/httpd-2.0/support/ab.c,v
retrieving revision 1.139
diff -u -r1.139 ab.c
--- support/ab.c	17 Mar 2004 00:06:44 -0000	1.139
+++ support/ab.c	17 Mar 2004 16:09:12 -0000
@@ -1286,9 +1286,9 @@
 	    c->done = apr_time_now();
 	    s.read = c->read;
 	    s.starttime = c->start;
-	    s.ctime = (c->connect - c->start) / 1000;
-	    s.time = (c->done - c->start) / 1000;
-	    s.waittime = (c->beginread - c->endwrite) / 1000;
+	    s.ctime = ap_max(0, (c->connect - c->start) / 1000);
+	    s.time = ap_max(0, (c->done - c->start) / 1000);
+	    s.waittime = ap_max(0, (c->beginread - c->endwrite) / 1000);
 	    stats[done++] = s;
 	}
     }
@@ -1507,9 +1507,9 @@
 	    c->done = apr_time_now();
 	    s.read = c->read;
 	    s.starttime = c->start;
-	    s.ctime = (c->connect - c->start) / 1000;
-	    s.waittime = (c->beginread - c->endwrite) / 1000;
-	    s.time = (c->done - c->start) / 1000;
+	    s.ctime = ap_max(0, (c->connect - c->start) / 1000);
+	    s.waittime = ap_max(0, (c->beginread - c->endwrite) / 1000);
+	    s.time = ap_max(0, (c->done - c->start) / 1000);
 	    stats[done++] = s;
 	}
 	c->keepalive = 0;
