Turn off prediction display only when quiescent (fixes #36 github issue)

This commit is contained in:
Keith Winstein
2012-03-07 03:51:31 -05:00
parent 5dc208a97e
commit 562ab991c8
+3 -1
View File
@@ -376,7 +376,9 @@ void PredictionEngine::cull( const Framebuffer &fb )
/* control srtt_trigger with hysteresis */
if ( send_interval > SRTT_TRIGGER_HIGH ) {
srtt_trigger = true;
} else if ( send_interval <= SRTT_TRIGGER_LOW ) { /* 20 ms is current minimum value */
} else if ( srtt_trigger &&
(send_interval <= SRTT_TRIGGER_LOW) /* 20 ms is current minimum value */
&& (!active()) ) { /* only turn off when no predictions being shown */
srtt_trigger = false;
}