Replies: 1 comment
-
Good catch. All of the projects that read asciicast files, at least the ones under asciinema GH org, assume strictly monotonic timestamps. This is especially important for reading/processing asciicasts in a streaming fashion. So I think we should just update v2 spec doc to be explicit about the necessity for monotonic timestamps / chronological events. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I looked at the v2 specs but I didn't see anything saying that events MUST be ordered according to their timestamp.
May I assume in a valid asciicast file, events are stored in a strictly increasing timestamps order, or is it valid:
FWIW, the Python player has no issue with multiple identical timestamps (neither with decreasing timestamps, by the way) since it will process events in the file's order anyway. But for more advanced tasks (like asciinema/asciinema#385) allowing multiple events with the same timestamp makes things like precisely indexing an event complicated.
Beta Was this translation helpful? Give feedback.
All reactions