We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e48e3a7 commit 8dd861cCopy full SHA for 8dd861c
lib/cloud_controller/benchmark/blobstore.rb
@@ -18,7 +18,7 @@ class Blobstore
18
'10MB' => 10 * 1024 * 1024,
19
'50MB' => 50 * 1024 * 1024,
20
'100MB' => 100 * 1024 * 1024,
21
- '500MB' => 400 * 1024 * 1024,
+ '500MB' => 500 * 1024 * 1024,
22
'1000MB' => 1000 * 1024 * 1024
23
}.freeze
24
@@ -138,7 +138,7 @@ def write_file_of_size(path, bytes)
138
remaining = bytes
139
while remaining > 0
140
to_write = [CHUNK_1MB.bytesize, remaining].min
141
- f.write(CHUNK_1MB, to_write)
+ f.write(CHUNK_1MB.byteslice(0, to_write))
142
remaining -= to_write
143
end
144
0 commit comments