Skip to content

Commit

Permalink
Fix some logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Synkstar committed Jan 18, 2023
1 parent f9ea149 commit 4dbc49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace global

// Reset the processing time if it has been more than a milisecond since the last reset
TimePair &Data = ProcessingTimes[Channel];
if (Data.second < End.time_since_epoch() + std::chrono::milliseconds(1))
if (End.time_since_epoch() < Data.second + std::chrono::milliseconds(1))
{
Data.first = 0;
Data.second = End.time_since_epoch();
Expand Down

0 comments on commit 4dbc49d

Please sign in to comment.