[PATCH libinput 1/3] tools: fix the velocity range for printing the ptraccel profile

Peter Hutterer peter.hutterer at who-t.net
Thu Jul 30 23:19:01 PDT 2015


Now using µs.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 tools/ptraccel-debug.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/ptraccel-debug.c b/tools/ptraccel-debug.c
index 1496763..b0867db 100644
--- a/tools/ptraccel-debug.c
+++ b/tools/ptraccel-debug.c
@@ -147,12 +147,12 @@ print_accel_func(struct motion_filter *filter)
 	printf("# set ylabel \"raw accel factor\"\n");
 	printf("# set style data lines\n");
 	printf("# plot \"gnuplot.data\" using 1:2\n");
-	for (vel = 0.0; vel < 3.0; vel += .0001) {
+	for (vel = 0.0; vel < 0.003; vel += 0.0000001) {
 		double result = pointer_accel_profile_linear(filter,
                                                              NULL,
                                                              vel,
                                                              0 /* time */);
-		printf("%.4f\t%.4f\n", vel, result);
+		printf("%.8f\t%.4f\n", vel, result);
 	}
 }
 
-- 
2.4.3



More information about the wayland-devel mailing list