From 994be25fe1416c39f133a8090daccc33d7808fb4 Mon Sep 17 00:00:00 2001 From: Krzysztof Karas Date: Wed, 19 May 2021 14:17:20 +0200 Subject: [PATCH] spdk_top: move mvhline() function call inside show_core Moves "mvwhline(core_win, 6, 1, ACS_HLINE, CORE_WIN_WIDTH - 2);" upwards to increase readability by placing this call in order (to print the line in 6th row after data in 5th row is done printing) Signed-off-by: Krzysztof Karas Change-Id: Icec340231090aeb57c600f52b3c687dbc78cc4b9 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7959 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki Reviewed-by: Paul Luse Reviewed-by: Reviewed-by: Aleksey Marchuk --- app/spdk_top/spdk_top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/spdk_top/spdk_top.c b/app/spdk_top/spdk_top.c index 463e441f8..781084402 100644 --- a/app/spdk_top/spdk_top.c +++ b/app/spdk_top/spdk_top.c @@ -2153,6 +2153,7 @@ show_core(uint8_t current_page) get_time_str(core_info[core_number]->busy, busy_time); } mvwprintw(core_win, 5, CORE_WIN_FIRST_COL + 20, idle_time); + mvwhline(core_win, 6, 1, ACS_HLINE, CORE_WIN_WIDTH - 2); print_left(core_win, 7, 1, CORE_WIN_WIDTH, "Poller count: Busy time:", COLOR_PAIR(5)); mvwprintw(core_win, 7, CORE_WIN_FIRST_COL, "%" PRIu64, @@ -2160,7 +2161,6 @@ show_core(uint8_t current_page) mvwprintw(core_win, 7, CORE_WIN_FIRST_COL + 20, busy_time); - mvwhline(core_win, 6, 1, ACS_HLINE, CORE_WIN_WIDTH - 2); mvwhline(core_win, 8, 1, ACS_HLINE, CORE_WIN_WIDTH - 2); print_left(core_win, 9, 1, CORE_WIN_WIDTH, "Threads on this core", COLOR_PAIR(5));