From f38fe87617a1b46d8d4e310ade69b037c468e1f1 Mon Sep 17 00:00:00 2001 From: anandaravuri Date: Thu, 12 Oct 2023 11:31:38 -0700 Subject: [PATCH] fix: loop count default value Signed-off-by: anandaravuri --- samples/cxl_mem_tg/cxl_mem_tg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/cxl_mem_tg/cxl_mem_tg.h b/samples/cxl_mem_tg/cxl_mem_tg.h index 87ccb14e7377..72a49f1c21e0 100644 --- a/samples/cxl_mem_tg/cxl_mem_tg.h +++ b/samples/cxl_mem_tg/cxl_mem_tg.h @@ -200,7 +200,7 @@ class cxl_mem_tg : public test_afu { // Loops app_.add_option("--loops", loop_, "Number of read/write loops to be run") - ->transform(CLI::Range(0, 268435456))->default_val(0); + ->transform(CLI::Range(1, 268435456))->default_val(1); // Writes app_.add_option("-w,--writes", wcnt_, @@ -210,7 +210,7 @@ class cxl_mem_tg : public test_afu { // Reads app_.add_option("-r,--reads", rcnt_, "Number of unique read transactions per loop") - ->transform(CLI::Range(0, 4095))->default_val("1"); + ->transform(CLI::Range(0, 4095))->default_val(1); // Address Stride app_.add_option("--stride", stride_,