diff options
| author | XANTRONIX Development | 2022-03-01 15:50:35 -0500 |
|---|---|---|
| committer | XANTRONIX Development | 2022-03-01 15:50:35 -0500 |
| commit | 80f45719b50f394e0cc797fdb20342698afbd14e (patch) | |
| tree | 5b6ac09cdd00e53ee8f7f05760fa1e158b92d072 | |
| parent | 592f32327cc6c22f51f5a878c94673d8873fe21c (diff) | |
| download | xas-80f45719b50f394e0cc797fdb20342698afbd14e.tar.gz xas-80f45719b50f394e0cc797fdb20342698afbd14e.tar.bz2 xas-80f45719b50f394e0cc797fdb20342698afbd14e.zip | |
Fix incorrect event sequencing
| -rw-r--r-- | src/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.c b/src/script.c index 8d57264..4bd69b1 100644 --- a/src/script.c +++ b/src/script.c @@ -56,8 +56,8 @@ static void add_event(xas_script *script, xas_script_event *ev) { return; } - if (!timercmp(¤t->timestamp, &ev->timestamp, <) - && timercmp(¤t->timestamp, &next->timestamp, <)) { + if (timercmp(&ev->timestamp, ¤t->timestamp, >=) + && timercmp(&ev->timestamp, &next->timestamp, <)) { current->next = ev; ev->next = next; |
