time_stop_conditions(): Adjust for lag more carefully
commita9de6c611bb4bfbc1f87c98c602ace16268099c9
authorPetr Baudis <pasky@ucw.cz>
Sat, 20 Feb 2010 14:34:07 +0000 (20 15:34 +0100)
committerPetr Baudis <pasky@ucw.cz>
Sat, 20 Feb 2010 14:34:07 +0000 (20 15:34 +0100)
tree64a81d5664174648d7da65f5cdd30aeba4bb0cca
parentda5178f94a2dbd51ab03914cb82cd4856eae482d
time_stop_conditions(): Adjust for lag more carefully

If we had only small amount of time available before lag adjustment,
make sure we don't cut it down too much (while still keeping some lag
safety margin).

Introduces MIN_THINK_WITH_LAG (MAX_LAG_TIME/2) and lag_adjust().
timeinfo.c