From: Jens Axboe Date: Thu, 15 Mar 2012 14:37:36 +0000 (+0100) Subject: graph: tighten x-axis tooltip hit X-Git-Tag: gfio-0.1~123 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=ef4ad58a0ebcfe44611b787ba18503f1c6db9247;ds=sidebyside graph: tighten x-axis tooltip hit Make it 10, like the Y-axis. Seems to work well in practice. Signed-off-by: Jens Axboe --- diff --git a/graph.c b/graph.c index 3f2ee6af..7dbfd357 100644 --- a/graph.c +++ b/graph.c @@ -842,7 +842,7 @@ static int xy_match(struct xyvalue *xy, int x, int y) int xdiff = abs(xy->gx - x); int ydiff = abs(xy->gy - y); - return xdiff <= 20 && ydiff <= 10; + return xdiff <= 10 && ydiff <= 10; } const char *graph_find_tooltip(struct graph *g, int x, int y)