httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r733479 - /httpd/httpd/trunk/support/rotatelogs.c
Date Sun, 11 Jan 2009 14:44:51 GMT
Author: rjung
Date: Sun Jan 11 06:44:51 2009
New Revision: 733479

URL: http://svn.apache.org/viewvc?rev=733479&view=rev
Log:
Addition to r744476:

- Fix compilation error
- set correct time when forcing log file open
  on startup

Modified:
    httpd/httpd/trunk/support/rotatelogs.c

Modified: httpd/httpd/trunk/support/rotatelogs.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/rotatelogs.c?rev=733479&r1=733478&r2=733479&view=diff
==============================================================================
--- httpd/httpd/trunk/support/rotatelogs.c (original)
+++ httpd/httpd/trunk/support/rotatelogs.c Sun Jan 11 06:44:51 2009
@@ -181,11 +181,12 @@
     status->nLogFDprev = status->nLogFD;
     status->nLogFD = NULL;
 
+    status->now = get_now(config->use_localtime, config->utc_offset);
     if (config->tRotation) {
         tLogStart = (status->now / config->tRotation) * config->tRotation;
     }
     else {
-        tLogStart = get_now(config->use_localtime, config->utc_offset);
+        tLogStart = status->now;
     }
 
     if (config->use_strftime) {
@@ -341,7 +342,7 @@
             exit(3);
         }
         checkRotate(&config, &status);
-        if (status->needsRotate) {
+        if (status.needsRotate) {
             doRotate(&config, &status);
         }
 



Mime
View raw message