[PATCH] add $unixtime to http variables
Kirill A. Korinskiy
catap at catap.ru
Tue Sep 21 11:36:29 MSD 2010
On Tue, Sep 21, 2010 at 09:00, Roberto De Ioris <roberto at unbit.it> wrote:
>
> > On Mon, Sep 20, 2010 at 10:43 PM, Roberto De Ioris <roberto at unbit.it>
> > wrote:
> >>
> >> Sorry, i think for this purpose it is betetr to use
> >> r->start_sec instead of time(NULL).
> >>
> >> What do you think about it ?
> > When I made the same patch nearly 2 years ago, I used
> > ngx_cached_time->sec.
> >
> >
>
> I would like to have (with the most possible accuracy) the time
> when the request starts. (this will allow to reliably calculate
> overload problems)
>
>
ngx_cached_time try to update every main loop.
> ngx_cached_time->sec can be different (oh yes we are talking about
> milliseconds, but why not maintaining accuracy :) )
>
but as unixtime you mean unix timestamp?
--
wbr, Kirill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100921/c67e52ed/attachment-0001.html>
More information about the nginx
mailing list