httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject [patch modules/generators/mod_status.c]
Date Mon, 11 Mar 2002 09:39:38 GMT
this looks like a copy-n-paste porting bug. in httpd-2.0's scoreboard 
stop/start timestamps are in apr_time_t (==usecs only).

the problem wasn't noticed before since these structures are never set in 
workers. Any ideas why? See mod_status's output for yourself.

Index: modules/generators/mod_status.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/generators/mod_status.c,v
retrieving revision 1.54
diff -u -r1.54 mod_status.c
--- modules/generators/mod_status.c	4 Mar 2002 10:46:22 -0000	
1.54
+++ modules/generators/mod_status.c	11 Mar 2002 09:33:44 -0000
@@ -575,8 +575,7 @@
                     req_time = 0L;
                 else
                     req_time = (long)
-                        (((ws_record.stop_time - ws_record.start_time) * 
1000)
-                        + ((ws_record.stop_time - ws_record.start_time) / 
1000));
+                        ((ws_record.stop_time - ws_record.start_time) / 
1000);
 #endif
                 if (req_time < 0L)
                     req_time = 0L;




_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:stas@stason.org  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


Mime
View raw message