Also add the default update interval into generic service definition file.
authorBjoern Sikora <bjoern.sikora@intra2net.com>
Fri, 28 Jan 2011 11:02:10 +0000 (12:02 +0100)
committerBjoern Sikora <bjoern.sikora@intra2net.com>
Fri, 28 Jan 2011 11:02:10 +0000 (12:02 +0100)
In case we define a new service and forget to set the interval, this prevents using update interval of 0.

src/service.cpp

index a8b52c6..492425f 100644 (file)
@@ -24,8 +24,8 @@ Service::Service()
     : Login("NOT SERIALIZED")
     , Password("NOT SERIALIZED")
     , ActualIP("0.0.0.0")
-    , UpdateInterval(0)
-    , MaxUpdatesWithinInterval(0)
+    , UpdateInterval(15)
+    , MaxUpdatesWithinInterval(3)
     , DNSCacheTTL(0)
     , ErrorCount(0)
     , ErrorServiceBlockedUntil(0)