merged PingRotate into PingScheduler; fixed save/load of cache to/from file; started...
[pingcheck] / src / dns / timetolive.h
index 70d9433..e3cd579 100644 (file)
@@ -68,13 +68,11 @@ private:
     template<class Archive>
     void load(Archive & ar, const unsigned int version)
     {
-        uint32_t ttl_seconds;
         std::string ttl_creation_time;
-        ar & BOOST_SERIALIZATION_NVP(ttl_seconds);
+        ar & BOOST_SERIALIZATION_NVP(Ttl);
         ar & BOOST_SERIALIZATION_NVP(ttl_creation_time);
 
         // now convert to Ip and Ttl
-        Ttl = ttl_seconds;
         TtlSetTime = boost::posix_time::from_iso_string(ttl_creation_time);
     }