[PATCH] set syscalls_todo to N, not N+1

Toralf Förster <[email protected]>
Newsgroups org.kernel.vger.trinity
Message-ID <[email protected]>
I really do not see any use case to increment users choice.

Signed-off-by: Toralf Förster <[email protected]>
---
 params.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/params.c b/params.c
index fe70ff3..5db33bd 100644
--- a/params.c
+++ b/params.c
@@ -254,7 +254,7 @@ void parse_args(int argc, char *argv[])
 
 		/* Set number of syscalls to do */
 		case 'N':
-			syscalls_todo = strtoll(optarg, NULL, 10) + 1;
+			syscalls_todo = strtoll(optarg, NULL, 10);
 			break;
 
 		/* Pause after each syscall */
-- 
1.8.1.5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.