From: Bjoern Sikora Date: Fri, 28 Jan 2011 16:45:35 +0000 (+0100) Subject: Fixed undefined var ;-). X-Git-Tag: v1.1~25 X-Git-Url: http://developer.intra2net.com/git/?p=bpdyndnsd;a=commitdiff_plain;h=162bffff5b595fb9684f709ff9bf66f7e51024a0 Fixed undefined var ;-). --- diff --git a/src/service.cpp b/src/service.cpp index fa80fd9..2414adb 100644 --- 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; }