From 36f0d888cda1bac90d07f24faa780ff7272af198 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 26 Apr 2019 16:17:28 -0400 Subject: [PATCH] Fix the verbose output boundaries. --- confluent_client/bin/stats | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/stats b/confluent_client/bin/stats index e06e1bb5..f8429dee 100755 --- a/confluent_client/bin/stats +++ b/confluent_client/bin/stats @@ -107,7 +107,9 @@ if args.v and n is not None and nodebydatum: bins = bins[1:] currbinmembers = [] for datum in sorted(nodebydatum): - if datum > currbin: + if datum > bins[0]: + while bins[0] < datum: + bins = bins[1:] print('Entries between {0} and {1}'.format(currbin, bins[0])) print('-' * 80) currbin = bins[0] if len(bins) else np.max(plotdata)