t/io_uring: add support for registering the ring fd
[fio.git] / t / genzipf.c
index 9faec38934945658ac4bc08606c7120e0d8388ac..cd62e584f846246071df12d4fe402c4f5cfd8a48 100644 (file)
@@ -14,7 +14,6 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
-#include <fcntl.h>
 #include <string.h>
 #include <unistd.h>
 
@@ -298,11 +297,11 @@ int main(int argc, char *argv[])
        nranges /= block_size;
 
        if (dist_type == TYPE_ZIPF)
-               zipf_init(&zs, nranges, dist_val, 1);
+               zipf_init(&zs, nranges, dist_val, -1, 1);
        else if (dist_type == TYPE_PARETO)
-               pareto_init(&zs, nranges, dist_val, 1);
+               pareto_init(&zs, nranges, dist_val, -1, 1);
        else
-               gauss_init(&gs, nranges, dist_val, 1);
+               gauss_init(&gs, nranges, dist_val, -1, 1);
 
        hash_bits = 0;
        hash_size = nranges;