From: Alex Zhuravlev Date: Wed, 16 Sep 2020 19:14:42 +0000 (+0300) Subject: LU-14050 utils: fix fraction output logic X-Git-Tag: 2.13.57~84 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9e24894e4ada4d381a5af6607c01fd378400707f;p=fs%2Flustre-release.git LU-14050 utils: fix fraction output logic so that it doesn't suppress single line reports Test-Parameters: trivial Signed-off-by: Alex Zhuravlev Change-Id: I9e374f8e769afcadc5cecbf529fa403deb544544 Reviewed-on: https://review.whamcloud.com/39934 Reviewed-by: John L. Hammond Tested-by: jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- diff --git a/lustre/utils/ofd_access_batch.c b/lustre/utils/ofd_access_batch.c index d5d567b..c5b4180 100644 --- a/lustre/utils/ofd_access_batch.c +++ b/lustre/utils/ofd_access_batch.c @@ -388,8 +388,6 @@ void *alr_sort_and_print_thread(void *arg) qsort(sa, nr, sizeof(*sa), sort_compare); i = nr * aa->fraction / 100; - if (i > 0) - i--; cut = sa[i]; if (cut < 1) cut = 1;