]> granicus.if.org Git - apache/commit
- when using "-l" reduce two consecutive calls to apr_time_now() to one.
authorRuediger Pluem <rpluem@apache.org>
Sat, 1 Dec 2007 16:14:21 +0000 (16:14 +0000)
committerRuediger Pluem <rpluem@apache.org>
Sat, 1 Dec 2007 16:14:21 +0000 (16:14 +0000)
commit5e4bf69196488a32a68e445c8ccdf064c69b401b
treeaf46afd7084c7b7cb9dfbc26dc9c7d5980814bc6
parent154f4026824066295661787df6e0842f40bbab66
- when using "-l" reduce two consecutive calls to apr_time_now() to one.
  This will not change the logic if no "-l" gets used, and it will spare
  one call to apr_time_now() in case "-l" gets used and more important
  it gives the code better atomicity, because in fact between the two calls
  there is a slight change of jumping oder the DST boundary

- for historic reasons the same code block is used two times with a
  slightly different way of transforming apr_time_t to int
  (once division by APR_USEC_PER_SEC, once call to apr_time_sec()),
  so let's unify it.

- finally move the block into a function, because it gets used already
  two times.

PR: 44004
Submitted by: Rainer Jung <rainer.jung kippdata.de>
Reviewed by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@600154 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
support/rotatelogs.c