git://developer.intra2net.com
/
pingcheck
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
added clean-up to DnsCache: will remove very old entries after 60 days
[pingcheck]
/
src
/
dns
/
timetolive.cpp
diff --git
a/src/dns/timetolive.cpp
b/src/dns/timetolive.cpp
index
4d628eb
..
87232df
100644
(file)
--- a/
src/dns/timetolive.cpp
+++ b/
src/dns/timetolive.cpp
@@
-74,3
+74,8
@@
uint32_t TimeToLive::get_updated_value() const
else
return original_ttl - elapsed_seconds;
}
+
+bool TimeToLive::was_set_before(const ptime &threshold) const
+{
+ return TtlSetTime < threshold;
+}