projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed83bc
)
graph: tighten x-axis tooltip hit
author
Jens Axboe
<axboe@kernel.dk>
Thu, 15 Mar 2012 14:37:36 +0000
(15:37 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 15 Mar 2012 14:37:36 +0000
(15:37 +0100)
Make it 10, like the Y-axis. Seems to work well in practice.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
graph.c
patch
|
blob
|
blame
|
history
diff --git
a/graph.c
b/graph.c
index 3f2ee6aff2d6d35f5f505a0ef21c8c3bbb82969a..7dbfd357bde0b0296501897a3096df8a0a6c9799 100644
(file)
--- 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 <=
2
0 && ydiff <= 10;
+ return xdiff <=
1
0 && ydiff <= 10;
}
const char *graph_find_tooltip(struct graph *g, int x, int y)