ref: 54b44ab797f0f9cacdeb63c9e07238e5f2a6a1f0
parent: 93c6b9578dc1999c2eaf01b08ede3bf400e159a7
author: Ori Bernstein <[email protected]>
date: Fri Oct 20 01:12:06 EDT 2023
fsbench: fix build
--- a/test/fsbench.c
+++ b/test/fsbench.c
@@ -5,7 +5,6 @@
int mainstacksize = 2*1024*1024;
typedef struct Bench Bench;
-#define IOUNIT 32*1024
enum {
KiB = 1024ULL,
MiB = 1024ULL*KiB,
@@ -167,7 +166,7 @@
for(rep = 0; rep < b->reps; rep++){
seek(fd, 0, 0);
for(i = 0; i < b->i0; i += Bufsz){
- off = vrand(b->i0-Bufsz) & ~(Bufsz-1);
+ off = vrand(b->i0-Bufsz) & ~((vlong)Bufsz-1);
if(pread(fd, buf, Bufsz, off) != Bufsz)
sysfatal("write: %r");
}