(currently nobody sets the start/stop times so this fix isn't
immediately apparent)
Submitted by: Stas Bekman
Reviewed by: Jeff Trawick
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93901
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.34-dev
+ *) Fix the calculation of request time in mod_status. [Stas Bekman]
+
*) Fix the calculation of thread_num in the worker score structure.
[Stas Bekman]
req_time = 0L;
#endif /* HAVE_TIMES */
#else
- if (ws_record.start_time == 0L
- && ws_record.start_time == 0L)
+ if (ws_record.start_time == 0L)
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;