iowatcher: Improve xticks logic
authorJan Kara <jack@suse.cz>
Thu, 6 Sep 2012 10:45:34 +0000 (12:45 +0200)
committerChris Mason <chris.mason@oracle.com>
Tue, 11 Sep 2012 00:53:05 +0000 (20:53 -0400)
commitd44f4c4cc63843b72ea06d65ccdaecb2f4c89657
treebdc7215cce9e07f76fa1f8f5558be0e8fb4bf5c9
parentd140b434b75b786062803158a4b6807aaf67be36
iowatcher: Improve xticks logic

Ticks on x axis used integral step and fixed number of ticks. That generates
wrong results e.g. for 13s long trace with 10 ticks... Allow the code to
somewhat alter the number of ticks and also use non-integral step.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
iowatcher/plot.c