]> Kevux Git Server - fll/commit
Revert: Rewrite timing logic in controller, and use different logic.
authorKevin Day <Kevin@kevux.org>
Sun, 7 Jul 2024 21:08:48 +0000 (16:08 -0500)
committerKevin Day <Kevin@kevux.org>
Sun, 7 Jul 2024 21:16:05 +0000 (16:16 -0500)
commit7bbddebd4845a6b5544670b181b74fcb01868b37
treec3f063603cca829e4770412cbde65555eb2298a7
parent9b21b888e52d9a7268c231bc0d520ec0be9bfcb8
Revert: Rewrite timing logic in controller, and use different logic.

This reverts commit 9b21b888e52d9a7268c231bc0d520ec0be9bfcb8.

This is not actually needed because a 32-bit long should not overflow with just 1000000000.
The logic I replaced it with was sloppy anyway and left out some cases.

The long representing nanoseconds can store greater than 999999999.
Make sure that is handled before adding to the tv_nsec.
level_3/controller/c/controller/private-controller.c