]> granicus.if.org Git - apache/commitdiff
zap some crufty NO_GETTIMEOFDAY code
authorJeff Trawick <trawick@apache.org>
Wed, 13 Mar 2002 13:08:49 +0000 (13:08 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 13 Mar 2002 13:08:49 +0000 (13:08 +0000)
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

modules/generators/mod_status.c

index ce6d5bead7a7484ccd18e105e4ef47c3ebf5c3d8..36563a98cb3e6a71d7f08594dee5cb4f652e6b9a 100644 (file)
@@ -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;