]> granicus.if.org Git - apache/commitdiff
use new time conversion macros in place of APR_USEC_PER_SEC
authorBrian Pane <brianp@apache.org>
Fri, 5 Jul 2002 00:53:12 +0000 (00:53 +0000)
committerBrian Pane <brianp@apache.org>
Fri, 5 Jul 2002 00:53:12 +0000 (00:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95961 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_auth_digest.c

index 2be23d5cac3abd14247481f0b05c140510e1480f..48d758cba55ceb755b935542c163a50e06023aa9 100644 (file)
@@ -1532,8 +1532,8 @@ static int check_nonce(request_rec *r, digest_header_rec *resp,
             ap_log_rerror(APLOG_MARK, APLOG_INFO, 0,r,
                           "Digest: user %s: nonce expired (%.2f seconds old "
                           "- max lifetime %.2f) - sending new nonce", 
-                          r->user, ((double)dt)/APR_USEC_PER_SEC, 
-                          ((double)(conf->nonce_lifetime))/APR_USEC_PER_SEC);
+                          r->user, (double)apr_time_sec(dt),
+                          (double)apr_time_sec(conf->nonce_lifetime));
             note_digest_auth_failure(r, conf, resp, 1);
             return HTTP_UNAUTHORIZED;
         }