aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <chris.mason@fusionio.com>2013-09-24 15:30:35 -0400
committerChris Mason <chris.mason@fusionio.com>2013-09-24 15:30:35 -0400
commit85b5ed3fa1f71eb2c5fde43f85e862b486a77608 (patch)
tree0a40368979a9821b70bcbc6b0f2f78f68424b6a5
parent655a7749ce43453ae104876f453d1e8c670b98ae (diff)
downloadiowatcher-85b5ed3fa1f71eb2c5fde43f85e862b486a77608.tar.gz
Fine tune the ticks
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
-rw-r--r--main.c2
-rw-r--r--plot.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 1444fbc..0d485f3 100644
--- a/main.c
+++ b/main.c
@@ -53,7 +53,7 @@ static int opt_graph_width = 0;
static int opt_graph_height = 0;
static int columns = 1;
-static int num_xticks = 7;
+static int num_xticks = 9;
static int num_yticks = 4;
static double min_time = 0;
diff --git a/plot.c b/plot.c
index 971a253..4f5e41d 100644
--- a/plot.c
+++ b/plot.c
@@ -561,7 +561,7 @@ void set_xticks(struct plot *plot, int num_ticks, int first, int last)
* We don't want last two ticks to be too close together so subtract
* 20% of the step from the interval
*/
- num_ticks = (double)(last - first - step / 5) / step + 1;
+ num_ticks = (double)(last - first - step) / step + 1;
pixels_per_tick = graph_width * step / (double)(last - first);
for (i = 0; i < num_ticks; i++) {