]> git.itanic.dy.fi Git - membench/commitdiff
Multiply count number argument with 1024
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 8 Oct 2010 18:39:21 +0000 (21:39 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 8 Oct 2010 18:39:21 +0000 (21:39 +0300)
It's easier to give the argument when there is no need to give so big
numbers.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
membench.c

index 4aaa8b9745656e2726839a86b984cb6387969b7b..63a8ed5e0918f97b55f3eeb93c0b1d883eb4bfca 100644 (file)
@@ -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",