filter: use a separate variable for the final accel factor
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 8 Jul 2014 02:05:36 +0000 (12:05 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 9 Jul 2014 02:48:44 +0000 (12:48 +1000)
commitb908e070e9a81e5ab6fa7840ce085a330a2c7eac
tree31ddc5d7bcdf87a19146ef62308a3360a51109eb
parent066092a04fd2a9419c392575cd1675d91c550d8c
filter: use a separate variable for the final accel factor

velocity is in unit/ms, the threshold is in units/ms. Once we divide
velocity/threshold, we're not in units/ms anymore but have a unitless factor.
Use a separate variable to avoid confusion.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/filter.c