We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8168ae commit 7a2edd2Copy full SHA for 7a2edd2
1 file changed
src/benchmarks/storage.rs
@@ -24,8 +24,11 @@ impl StorageBenchmark {
24
.open(&self.path)?;
25
while true {
26
let chunk_size = min(self.chunk_size, remaining_size);
27
- let written = file.write(&buf[..chunk_size])?;
28
- remaining_size -= written;
+ let _written = file.write(&buf[..chunk_size])?;
+ // Notice: somehow there's a bug or what making written size returning 0, which is
29
+ // obviously wrong. Before we fix that, we just calculate the remaining_size
30
+ // based on the size we have written
31
+ remaining_size -= chunk_size;
32
}
33
file.sync_all();
34
let end = SystemTime::now();
0 commit comments