Commit 27d157c1 authored by Krzysztof Karas's avatar Krzysztof Karas Committed by Tomasz Zawadzki
Browse files

spdk_top: fix broken column names after resizing



Redraw only current tab's column descriptions upon
resizing terminal to avoid writing text from other
columns.

Change-Id: I50f2be79615b08f42b2f8600cdb95048eda8ab56
Signed-off-by: default avatarKrzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11684


Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent fe85d7f1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1273,7 +1273,6 @@ resize_interface(enum tabs tab)
		wclear(g_tabs[i]);
		wresize(g_tabs[i], g_max_row - MENU_WIN_HEIGHT - TAB_WIN_HEIGHT - 2, g_max_col);
		mvwin(g_tabs[i], TABS_LOCATION_ROW, TABS_LOCATION_COL);
		draw_tabs(i, g_current_sort_col[i], g_current_sort_col2[i]);
	}

	draw_tabs(tab, g_current_sort_col[tab], g_current_sort_col2[tab]);