From 162bffff5b595fb9684f709ff9bf66f7e51024a0 Mon Sep 17 00:00:00 2001 From: Bjoern Sikora Date: Fri, 28 Jan 2011 17:45:35 +0100 Subject: [PATCH] Fixed undefined var ;-). --- src/service.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; } -- 1.7.1