diff options
author | Alan D. Brunelle <adb@bannor.(none)> | 2008-01-31 13:02:24 -0500 |
---|---|---|
committer | Alan D. Brunelle <adb@bannor.(none)> | 2008-01-31 13:02:24 -0500 |
commit | 5683cbf679d2a03239f075661282bf4537a06130 (patch) | |
tree | 376cf5e1c0e51ec3e35171693410b131d1bdc2e6 /btt | |
parent | 461afe819c41fa811f9c6264524cb8edbd2acc63 (diff) | |
download | blktrace-5683cbf679d2a03239f075661282bf4537a06130.tar.gz blktrace-5683cbf679d2a03239f075661282bf4537a06130.tar.bz2 |
Fixed excess bucket information for unplug histograms.
Diffstat (limited to 'btt')
-rw-r--r-- | btt/unplug_hist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/btt/unplug_hist.c b/btt/unplug_hist.c index 4971f31..aaa4c39 100644 --- a/btt/unplug_hist.c +++ b/btt/unplug_hist.c @@ -23,7 +23,7 @@ #define BKT_WIDTH 5 #define MAX_BKT 19 #define EXCESS_BKT 20 -#define NBKTS EXCESS_BKT +#define NBKTS (EXCESS_BKT + 1) struct hist_bkt { __u32 dev; @@ -56,7 +56,7 @@ void unplug_hist_add(struct io *u_iop) struct hist_bkt *hbp = dip->unplug_hist_handle; idx = (n_unplugs / BKT_WIDTH); - if (idx > MAX_BKT) + if (idx > EXCESS_BKT) idx = EXCESS_BKT; assert((0 <= idx) && (idx <= EXCESS_BKT)); |