From 3154d4c9b11a541f1c2da08ce768cd3658a30211 Mon Sep 17 00:00:00 2001 From: Krzysztof Karas Date: Tue, 16 Feb 2021 12:32:47 +0100 Subject: [PATCH] spdk_top: change initial refresh rate This patch increases initial refresh rate for data gathering. Initial refresh rate value was originally set to 1 microsecond, which was too little for some values in tabs to refresh. Signed-off-by: Krzysztof Karas Change-Id: Ideeab28d3c2bbdd1133fa8706c8f2182948d7d5c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6445 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto Reviewed-by: Tomasz Zawadzki Reviewed-by: Konrad Sztyber Community-CI: Mellanox Build Bot --- app/spdk_top/spdk_top.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/spdk_top/spdk_top.c b/app/spdk_top/spdk_top.c index ec69386776..4ab6212aec 100644 --- a/app/spdk_top/spdk_top.c +++ b/app/spdk_top/spdk_top.c @@ -2348,7 +2348,8 @@ data_thread_routine(void *arg) } pthread_mutex_unlock(&g_thread_lock); - usleep(g_sleep_time); + + usleep(g_sleep_time * SPDK_SEC_TO_USEC); } return NULL;