lfsr-test: print total elapsed time correctly
authorSteven Noonan <steven@uplinklabs.net>
Fri, 1 May 2015 19:49:34 +0000 (19:49 +0000)
committerJens Axboe <axboe@fb.com>
Fri, 1 May 2015 23:19:31 +0000 (17:19 -0600)
The conversion from microseconds to seconds is 1e6 not 1e9.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Jens Axboe <axboe@fb.com>
t/lfsr-test.c

index 901f1a66bfb30e2184391c1365872d1a646465af..4352b89f3319959ab55c8e90d15e3878717b432e 100644 (file)
@@ -122,7 +122,7 @@ int main(int argc, char *argv[])
        if (verify)
                printf("(slower due to verification)");
        printf("\n==============================\n");
        if (verify)
                printf("(slower due to verification)");
        printf("\n==============================\n");
-       printf("Elapsed: %lf s\n", total / pow(10,9));
+       printf("Elapsed: %lf s\n", total / pow(10,6));
        printf("Mean:    %lf us\n", mean);
 
        free(v_start);
        printf("Mean:    %lf us\n", mean);
 
        free(v_start);