[Pdns-users] No transfer starting ?

Ian R. Justman ianj at ian-justman.com
Tue Jan 13 22:47:35 UTC 2004



Jeroen Wunnink wrote:

> Well I'm sure that it's that bug..., because we keep off-site SNMP stats 
> of every server, and the CPU and load graphs have gone kazooie since 
> saturday.., pushing a constant 1 to 2 system load, and 100% cpu..
> 
> I'll give the compile another try, just to make sure.., all that's 
> changed in the source of
> 
> communicator.hh 
> 
> to fix it is this part right:
> 
> early=(1<<31)-1
> 
> 
> 
> Just the ( )'s were added.. ?
> At 19:21 12-1-2004, you wrote:

I used this one myself:

 >diff -r -u pdns-2.9.11.orig/pdns/communicator.hh 
pdns-2.9.11/pdns/communicator.hh
 >> --- pdns-2.9.11.orig/pdns/communicator.hh	Sat Jun 21 06:04:32 2003
 >> +++ pdns-2.9.11/pdns/communicator.hh	Mon Jan 12 05:06:42 2004
 >> @@ -94,7 +94,8 @@
 >>
 >>    time_t earliest()
 >>    {
 >> -    time_t early=1<<31-1; // y2038 problem lurking here
 >> +    //time_t early=1<<31-1; // y2038 problem lurking here
 >> +    time_t early=INT_MAX;
 >>      for(d_nqueue_t::const_iterator 
i=d_nqueue.begin();i!=d_nqueue.end();++i)
 >>        early=min(early,i->next);
 >>      return early-time(0);

(Sorry about any wrappage.)

Though I think the parentheses correction is a bit more "proper".

--Ian.



More information about the Pdns-users mailing list