GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit d7b5d3de authored by juga  's avatar juga
Browse files

fix: timestamp: Old timestamps are minor than older

Old timestamps are minor than the older date, not major.
parent 380a8062
......@@ -91,4 +91,4 @@ def is_old(timestamp, measurements_period=MEASUREMENTS_PERIOD):
# is not actually a timestamp
timestamp = unixts_to_dt_obj(timestamp)
oldest_date = datetime.utcnow() - timedelta(measurements_period)
return timestamp > oldest_date
return timestamp < oldest_date
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment