diff options
author | Chris Mason <chris.mason@fusionio.com> | 2013-09-24 15:30:35 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-24 15:30:35 -0400 |
commit | 85b5ed3fa1f71eb2c5fde43f85e862b486a77608 (patch) | |
tree | 0a40368979a9821b70bcbc6b0f2f78f68424b6a5 | |
parent | 655a7749ce43453ae104876f453d1e8c670b98ae (diff) | |
download | iowatcher-85b5ed3fa1f71eb2c5fde43f85e862b486a77608.tar.gz |
Fine tune the ticks
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | plot.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; @@ -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++) { |