Skip to content

Commit 01a2165

Browse files
kjyagerbordaigorl
authored andcommitted
Added additional catch-all case for timestamp based versioning
Prior commit reported version 2.9.1.236 for all timestamps greater-than or equal to the 2.9.1.236 timestamp. I realized this might break the versioning logic for later 2.9 SW versions, so I added an additional version tuple of (2.9.1.9999) to represent those versions instead.
1 parent cb555f9 commit 01a2165

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rmview/rmparams.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ def timestamp_to_version(ts):
1818
return (2, 7, 0, 0)
1919
elif ts < SW_VER_TIMESTAMPS["2.9.1.236"]:
2020
return (2, 9, 0, 0)
21-
else:
21+
elif ts == SW_VER_TIMESTAMPS["2.9.1.236"]:
2222
return (2, 9, 1, 236)
23+
else:
24+
return (2, 9, 1, 9999) # Phony version number. Just needs to compare > 2.9.1.236
2325

2426

2527
# evtype_sync = 0

0 commit comments

Comments
 (0)