From: Brian Pane Date: Sun, 30 Jun 2002 18:20:13 +0000 (+0000) Subject: Replaced APR_USEC_PER_SEC division with apr_time_sec macro X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8956ecd79f9c0a3a7be8ef5144ccab8c1dd1b97;p=apache Replaced APR_USEC_PER_SEC division with apr_time_sec macro git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95917 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_status.c b/modules/generators/mod_status.c index bd476cefc1..b8bccf5095 100644 --- a/modules/generators/mod_status.c +++ b/modules/generators/mod_status.c @@ -384,9 +384,8 @@ static int status_handler(request_rec *r) } /* up_time in seconds */ - up_time = (apr_uint32_t) ((nowtime - - ap_scoreboard_image->global->restart_time) - / APR_USEC_PER_SEC); + up_time = (apr_uint32_t) apr_time_sec(nowtime - + ap_scoreboard_image->global->restart_time); if (!short_report) { ap_rputs(DOCTYPE_HTML_3_2 @@ -648,8 +647,8 @@ static int status_handler(request_rec *r) ws_record->times.tms_cutime / tick, ws_record->times.tms_cstime / tick, #endif - (long)((nowtime - ws_record->last_used) / - APR_USEC_PER_SEC), + (long)apr_time_sec(nowtime - + ws_record->last_used), (long) req_time); format_byte_out(r, conn_bytes); @@ -733,8 +732,8 @@ static int status_handler(request_rec *r) ws_record->times.tms_cutime + ws_record->times.tms_cstime) / tick, #endif - (long)((nowtime - ws_record->last_used) / - APR_USEC_PER_SEC), + (long)apr_time_sec(nowtime - + ws_record->last_used), (long)req_time); ap_rprintf(r, "%-1.1f%-2.2f%-2.2f\n",