Fixed undefined var ;-).
authorBjoern Sikora <bjoern.sikora@intra2net.com>
Fri, 28 Jan 2011 16:45:35 +0000 (17:45 +0100)
committerBjoern Sikora <bjoern.sikora@intra2net.com>
Fri, 28 Jan 2011 16:45:35 +0000 (17:45 +0100)
src/service.cpp

index fa80fd9..2414adb 100644 (file)
@@ -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;
     }