tckglobal: Fix erroneous -niter parsing for values bigger that 1.4e9#2258
Conversation
When tckglobal command was run with -niter 10B the numbers of iterations, that run were maximally 1410065408 instead of 10000000000. This change fixes this parsing issue.
|
Hey @sertopexamgio, Awesome to see some external pull requests coming in! For this one, rather than expanding the code out to multiple lines, you can instead exploit the fact that Cheers! |
|
Hey @Lestropie, thanks for your review, that was a neat suggestion. Cheers! |
dchristiaens
left a comment
There was a problem hiding this comment.
I concur with @Lestropie that
uint64_t niter = get_option_value<uint64_t>("niter", DEFAULT_NITER);
would be the cleaner syntax. Nice addition and thanks for contributing!
The tckglobal command when run with
-niter 10Bcould only run for1410065408iterations instead of10000000000iterasions. These changes fixed the parsing issue.