Skip to content

Commit 510ca58

Browse files
committed
typos
Signed-off-by: Steven Hahn <hahnse@ornl.gov>
1 parent c92654e commit 510ca58

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

bin/wfbench

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,14 @@ def io_alternate(inputs, outputs, cpu_queue: multiprocessing.Queue, memory_limit
287287
# except queue.Empty:
288288
# break
289289

290-
log_debug(f"CPU Percent: {cpu_percent}")
291-
if true: #cpu_percent:
290+
log_debug(f"IO Percent: {io_completed}")
291+
if True: #cpu_percent:
292292
bytes_to_read = {
293-
name: int(size * (cpu_percent / 100) - bytes_read[name])
293+
name: int(size * (io_completed / 100) - bytes_read[name])
294294
for name, size in inputs.items()
295295
}
296296
bytes_to_write = {
297-
name: int(size * (cpu_percent / 100) - bytes_written[name])
297+
name: int(size * (io_completed / 100) - bytes_written[name])
298298
for name, size in outputs.items()
299299
}
300300
io_read_benchmark_user_input_data_size(bytes_to_read, rundir, memory_limit=memory_limit)
@@ -312,7 +312,7 @@ def io_alternate(inputs, outputs, cpu_queue: multiprocessing.Queue, memory_limit
312312
log_debug(f"Bytes Read: {bytes_read}")
313313
log_debug(f"Bytes Written: {bytes_written}")
314314

315-
io_completed = io_completed + 1 # cpu_percent
315+
io_completed = io_completed + 1
316316

317317
if io_completed >= 100:
318318
break

0 commit comments

Comments
 (0)