Skip to content

Commit

Permalink
Fix, making it accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
preston-rogers committed Sep 30, 2024
1 parent 1fd40b8 commit 99d0115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ bool jsd_init(jsd_t* self, const char* ifname, uint8_t enable_autorecovery, int
while (true) {
struct timespec current_time;
clock_gettime(CLOCK_REALTIME, &current_time);
if ((start_processdata_time.tv_nsec - current_time.tv_nsec)/1e3 > timeout_us) {
if ((current_time.tv_nsec - start_processdata_time.tv_nsec)/1e3 > timeout_us) {
MSG_DEBUG("Went over the loop period!");
}
else {
Expand Down

0 comments on commit 99d0115

Please sign in to comment.