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 <krzysztof.karas@intel.com>
Change-Id: Ideeab28d3c2bbdd1133fa8706c8f2182948d7d5c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6445
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>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Community-CI: Mellanox Build Bot
This commit is contained in:
Krzysztof Karas 2021-02-16 12:32:47 +01:00 committed by Tomasz Zawadzki
parent 0f5cd128ec
commit 3154d4c9b1

View File

@ -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;