Commit 775173fd authored by Krzysztof Karas's avatar Krzysztof Karas Committed by Tomasz Zawadzki
Browse files

spdk_top: delete core_num variable



Deletes core num variable inside refresh_cores_tab,
because it is used only in one place.

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


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
parent e230f8e9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1427,7 +1427,6 @@ refresh_cores_tab(uint8_t current_page)
{
	struct col_desc *col_desc = g_col_desc[CORES_TAB];
	uint64_t i;
	uint32_t core_num;
	uint16_t offset, count = 0;
	uint8_t max_pages, item_index;
	static uint8_t last_page = 0;
@@ -1451,9 +1450,8 @@ refresh_cores_tab(uint8_t current_page)
	}

	for (i = 0; i < g_threads_stats.threads.threads_count; i++) {
		core_num = g_threads_stats.threads.thread_info[i].core_num;
		for (int j = 0; j < count; j++) {
			if (cores[j].core == core_num) {
			if ((int)cores[j].core == g_threads_stats.threads.thread_info[i].core_num) {
				cores[j].threads_count++;
				cores[j].pollers_count += g_threads_stats.threads.thread_info[i].active_pollers_count +
							  g_threads_stats.threads.thread_info[i].timed_pollers_count +