From 5a26bb536de92f5a17cfa8714cf74943fa8e9108 Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Fri, 16 Jun 2006 10:01:14 +0000 Subject: [PATCH] big speedup git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@852 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- pdns/syncres.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/syncres.hh b/pdns/syncres.hh index a1339acc6..bdda17738 100644 --- a/pdns/syncres.hh +++ b/pdns/syncres.hh @@ -120,7 +120,7 @@ public: } } - void submit(int val, struct timeval*tv = 0) + void submit(int val, struct timeval* tv) { struct timeval now=getOrMakeTime(tv); @@ -136,7 +136,7 @@ public: d_val=(float)((1-factor)*val+ (float)factor*d_val); } - double get(struct timeval*tv = 0) + double get(struct timeval* tv) { struct timeval now=getOrMakeTime(tv); float diff=makeFloat(d_lastget-now); @@ -292,7 +292,7 @@ public: double ret=numeric_limits::max(); double tmp; for(collection_t::iterator pos=d_collection.begin(); pos != d_collection.end(); ++pos) { - if((tmp=pos->second.get()) < ret) { + if((tmp=pos->second.get(now)) < ret) { ret=tmp; d_best=pos->first; } -- 2.40.0