From: Timo Kokkonen Date: Fri, 8 Oct 2010 18:39:21 +0000 (+0300) Subject: Multiply count number argument with 1024 X-Git-Url: http://git.itanic.dy.fi/?p=membench;a=commitdiff_plain;h=675e4749c4ce6f8c09da2e6fe9a8a0fc390eaf19;ds=sidebyside Multiply count number argument with 1024 It's easier to give the argument when there is no need to give so big numbers. Signed-off-by: Timo Kokkonen --- diff --git a/membench.c b/membench.c index 4aaa8b9..63a8ed5 100644 --- a/membench.c +++ b/membench.c @@ -27,9 +27,9 @@ int main(int argc, char *argv[]) iterations = 24; if (argc > 2) - count = atoi(argv[2]); + count = atoi(argv[2]) * 1024; else - count = 1024; + count = 1024 * 64; latcount = count / 10; printf("Doing %d runs with buffer size goin up to %dk\n",