From: Keith Busch Date: Tue, 26 Jun 2018 17:29:17 +0000 (-0600) Subject: intel: fix latency stats printing X-Git-Tag: v1.6~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c2fa9b73e65b855f83653dcc3283bbfe05de878d;p=users%2Fsagi%2Fnvme-cli.git intel: fix latency stats printing Incorrectly using the same bucket for all three print routines. Link: https://github.com/linux-nvme/nvme-cli/issues/378 Signed-off-by: Keith Busch --- diff --git a/intel-nvme.c b/intel-nvme.c index 5e407df5..102920a7 100644 --- a/intel-nvme.c +++ b/intel-nvme.c @@ -390,11 +390,11 @@ static void show_lat_stats(struct intel_lat_stats *stats, int write) printf("\nGroup 2: Range is 1-32ms, step is 1ms\n"); for (i = 0; i < 31; i++) - printf("Bucket %2d: %u\n", i, stats->bucket_1[i]); + printf("Bucket %2d: %u\n", i, stats->bucket_2[i]); printf("\nGroup 3: Range is 32-1s, step is 32ms:\n"); for (i = 0; i < 31; i++) - printf("Bucket %2d: %u\n", i, stats->bucket_1[i]); + printf("Bucket %2d: %u\n", i, stats->bucket_3[i]); } static int get_lat_stats_log(int argc, char **argv, struct command *cmd, struct plugin *plugin)