]> git.itanic.dy.fi Git - membench/commitdiff
Transfer equal amount of bytes during each block
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 8 Oct 2010 18:40:37 +0000 (21:40 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 8 Oct 2010 18:40:37 +0000 (21:40 +0300)
It makes really no sense to have it run large block size longer.

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

index 63a8ed5e0918f97b55f3eeb93c0b1d883eb4bfca..e99e6ea047ff2b0512e73b8497b5184d6427b4f5 100644 (file)
@@ -142,6 +142,11 @@ int main(int argc, char *argv[])
        
                printf("\n");
 
        
                printf("\n");
 
+               count /= 2;
+               count = count ? count : 1;
+               latcount = count / 10;
+               latcount = latcount ? latcount : 1;
+
                free(buf);
        }
        return 0;
                free(buf);
        }
        return 0;