[tor-bugs] #20224 [Metrics/CollecTor]: Fix `BridgeDescriptorMappingsLimit` config option
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Sep 30 15:05:26 UTC 2016
#20224: Fix `BridgeDescriptorMappingsLimit` config option
-------------------------------+------------------------------
Reporter: karsten | Owner:
Type: defect | Status: needs_review
Priority: Low | Milestone:
Component: Metrics/CollecTor | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
-------------------------------+------------------------------
Comment (by iwakeh):
I'd rather set the time explicitly in case of a too small value, i.e.
{{{
SimpleDateFormat formatter = new SimpleDateFormat(
"yyyy-MM-dd HH:mm:ss");
formatter.setTimeZone(TimeZone.getTimeZone("UTC"));
long cutTime = System.currentTimeMillis() - 24L * 60L * 60L * 1000L
* limitBridgeSanitizingInterval);
if (cutTime > -Integer.MAX_VALUE)
this.bridgeSanitizingCutOffTimestamp = formatter.format(cutTime);
} else {
this.bridgeSanitizingCutOffTimestamp = "1999-12-31 23:59:59";
}
}}}
(Assuming 1999-12-31 23:59:59 is the smallest possible time stamp that
makes sense.)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20224#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list