Skip to content

Commit

Permalink
fix: loop count default value
Browse files Browse the repository at this point in the history
Signed-off-by: anandaravuri <[email protected]>
  • Loading branch information
anandaravuri committed Oct 12, 2023
1 parent 00253a1 commit f38fe87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/cxl_mem_tg/cxl_mem_tg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_,
Expand All @@ -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_,
Expand Down

0 comments on commit f38fe87

Please sign in to comment.