Skip to content
  1. Dec 12, 2007
  2. Dec 11, 2007
  3. Dec 10, 2007
  4. Dec 09, 2007
  5. Dec 08, 2007
  6. Dec 06, 2007
  7. Dec 05, 2007
  8. Dec 04, 2007
  9. Dec 03, 2007
  10. Dec 02, 2007
  11. Dec 01, 2007
    • Ruediger Pluem's avatar
      - when using "-l" reduce two consecutive calls to apr_time_now() to one. · a85229ed
      Ruediger Pluem authored
        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
      a85229ed