Commit b7537658 authored by Andreas Schmidt's avatar Andreas Schmidt

Remove post-pacing time based on appSendPace_diff.

parent 300f6b14
Pipeline #2817 passed with stages
in 1 minute and 41 seconds
......@@ -61,7 +61,7 @@ bool PrrtSocket_pace(PrrtSocket *s, bool prepace) {
prrtTimeDifference_t now = (prrtTimeDifference_t) PrrtClock_get_current_time_us();
diff = ((prrtTimeDifference_t) s->nextSendTime) - now;
if (!prepace) { // post-pacing removes appSendPace
diff -= PrrtPace_get_eff(s->appSendPace);
diff -= PrrtPace_get_diff(s->appSendPace);
diff = MAX(0, diff);
}
if (diff > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment