[Varnish] #630: helpers to convert varnish time into struct timespec/timeval

Varnish varnish-bugs at projects.linpro.no
Mon Jan 25 22:48:00 CET 2010


#630: helpers to convert varnish time into struct timespec/timeval
-------------------------+--------------------------------------------------
 Reporter:  slink        |        Owner:  phk    
     Type:  enhancement  |       Status:  closed 
 Priority:  normal       |    Milestone:         
Component:  varnishd     |      Version:  2.0    
 Severity:  normal       |   Resolution:  invalid
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by phk):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 Sorry, but this is way more code than I'm prepared to introduce for
 something that can be
 done perfectly well with a couple of lines of C-code:

 {{{
         struct timeval timeout;
         timeout.tv_sec = (int)floor(seconds);
         timeout.tv_usec = (int)(1e6 * (seconds - timeout.tv_sec));
 }}}

 (From lib/libvarnish/tcp.c)

 Poul-Henning

-- 
Ticket URL: <http://varnish-cache.org/ticket/630#comment:2>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list