From: Jeff Trawick Date: Wed, 13 Mar 2002 13:08:49 +0000 (+0000) Subject: zap some crufty NO_GETTIMEOFDAY code X-Git-Tag: CHANGES~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea0096097b191611b2fd0ce7772168649a367938;p=apache zap some crufty NO_GETTIMEOFDAY code Submitted by: Stas Bekman Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93902 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_status.c b/modules/generators/mod_status.c index ce6d5bead7..36563a98cb 100644 --- a/modules/generators/mod_status.c +++ b/modules/generators/mod_status.c @@ -558,24 +558,11 @@ static int status_handler(request_rec *r) ws_record = ap_scoreboard_image->servers[i][j]; ps_record = ap_scoreboard_image->parent[i]; -#if defined(NO_GETTIMEOFDAY) -#ifdef HAVE_TIMES - if (ws_record.start_time == (clock_t)0) - req_time = 0L; - else { - req_time = ws_record.stop_time - ws_record.start_time; - req_time = (req_time * 1000) / (int)tick; - } -#else - req_time = 0L; -#endif /* HAVE_TIMES */ -#else if (ws_record.start_time == 0L) req_time = 0L; else req_time = (long) ((ws_record.stop_time - ws_record.start_time) / 1000); -#endif if (req_time < 0L) req_time = 0L;