git://developer.intra2net.com
/
bpdyndnsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4553e83
)
Fixed undefined var ;-).
author
Bjoern Sikora
<bjoern.sikora@intra2net.com>
Fri, 28 Jan 2011 16:45:35 +0000 (17:45 +0100)
committer
Bjoern Sikora
<bjoern.sikora@intra2net.com>
Fri, 28 Jan 2011 16:45:35 +0000 (17:45 +0100)
src/service.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/service.cpp
b/src/service.cpp
index
fa80fd9
..
2414adb
100644
(file)
--- a/
src/service.cpp
+++ b/
src/service.cpp
@@
-306,7
+306,7
@@
void Service::set_last_update(const time_t current_time, const string& ip)
else if ( UpdateInterval > 0 )
{
// Delete the oldest entry if it's older than current_time - UpdateInterval(minutes) + 1.
- if ( (current_time - ((time_t)UpdateInterval*60) + 1) > LastUpdates.upper_bound(zero)->first )
+ if ( (current_time - ((time_t)UpdateInterval*60) + 1) > LastUpdates.upper_bound(0)->first )
LastUpdates.erase(LastUpdates.upper_bound(0));
return;
}