summaryrefslogtreecommitdiff
path: root/graph.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-03-21 22:00:43 +0100
committerJens Axboe <axboe@kernel.dk>2012-03-21 22:00:43 +0100
commit5fb8d7912ebf6fabb9ad3a61c4cd316126af602e (patch)
tree779f289c0b93a92943b64a38fd16229b4f940505 /graph.c
parentb7a69ad89e65cb4f38ccf164ae7c00bb4efe0ef5 (diff)
downloadfio-5fb8d7912ebf6fabb9ad3a61c4cd316126af602e.tar.gz
fio-5fb8d7912ebf6fabb9ad3a61c4cd316126af602e.tar.bz2
graph: remove unnecessary float multiplier
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'graph.c')
-rw-r--r--graph.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/graph.c b/graph.c
index 55dde85e..e05e0723 100644
--- a/graph.c
+++ b/graph.c
@@ -705,16 +705,15 @@ static void graph_label_add_value(struct graph_label *i, void *value,
i->value_count++;
if (tooltip) {
- /*
- * use msec to avoid dropping too much precision when
- * storing as an integer.
- */
double xval = getx(x);
double minx = xval - (g->xtick_one_val * TOOLTIP_DELTA);
double maxx = xval + (g->xtick_one_val * TOOLTIP_DELTA);
struct prio_tree_node *ret;
- xval = xval * 1000.0;
+ /*
+ * use msec to avoid dropping too much precision when
+ * storing as an integer.
+ */
minx = minx * 1000.0;
maxx = maxx * 1000.0;