#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 _______________________________________________ tor-bugs mailing list tor-bugs@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs