examples/nvme_perf: Fix result calculation with warmup
Signed-off-by: Evgeniy Kochetov <evgeniik@nvidia.com> Change-Id: I67868da84d61f82a77fc2350dbc530e73ace2d91 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11103 Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot
This commit is contained in:
parent
355806b5d5
commit
a69541fc31
@ -1662,8 +1662,9 @@ work_fn(void *arg)
|
||||
|
||||
if (tsc_current > tsc_end) {
|
||||
if (warmup) {
|
||||
/* Update test end time, clear statistics */
|
||||
tsc_end = tsc_current + g_time_in_sec * g_tsc_rate;
|
||||
/* Update test start and end time, clear statistics */
|
||||
tsc_start = spdk_get_ticks();
|
||||
tsc_end = tsc_start + g_time_in_sec * g_tsc_rate;
|
||||
|
||||
TAILQ_FOREACH(ns_ctx, &worker->ns_ctx, link) {
|
||||
memset(&ns_ctx->stats, 0, sizeof(ns_ctx->stats));
|
||||
|
Loading…
Reference in New Issue
Block a user