spring: Avoid excessive calculation loops for the spring values
authorRob Bradford <rob@linux.intel.com>
Thu, 9 Aug 2012 14:35:49 +0000 (15:35 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 9 Aug 2012 16:51:45 +0000 (12:51 -0400)
commit84cf541b279f0beb2162aff46c85aefbab60a77c
treea754fab2d69d66d4c7f0989057826688f5e3d450
parent5ca1a47e2342007107f55566a692e8b7935997fe
spring: Avoid excessive calculation loops for the spring values

To handle the case where wall clock time jumps forwards by a large amount or
backwards limit the execution of the spring calculation loop.

We do this by forcing the spring update timestamp to being no older that 1s of
the most current time we've been given. We also present a log message if the
timestamp jumps more than expected.
src/util.c