spdk_top: change threads array inside refresh_threads_tab()
Changes number of allocated elements to RPC_MAX_THREADS in *thread_info[] array inside refresh_threads_tab() to match other refresh functions. Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Change-Id: If62faed463f42f232693f5bdaea70a5bb248891f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7993 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
e9af400888
commit
d7d4a712cf
@ -940,7 +940,7 @@ refresh_threads_tab(uint8_t current_page)
|
||||
static uint8_t last_page = 0;
|
||||
char pollers_number[MAX_POLLER_COUNT_STR_LEN], idle_time[MAX_TIME_STR_LEN],
|
||||
busy_time[MAX_TIME_STR_LEN], core_str[MAX_CORE_MASK_STR_LEN];
|
||||
struct rpc_thread_info *thread_info[g_threads_stats.threads.threads_count];
|
||||
struct rpc_thread_info *thread_info[RPC_MAX_THREADS];
|
||||
|
||||
threads_count = g_threads_stats.threads.threads_count;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user