Skip to content

Commit

Permalink
Merge branch 'status-interval-finished-jobs' of https://github.com/mm…
Browse files Browse the repository at this point in the history
…kayPL/fio

* 'status-interval-finished-jobs' of https://github.com/mmkayPL/fio:
  Handle finished jobs when using status-interval
  • Loading branch information
axboe committed Mar 29, 2022
2 parents a57d3fd + 61850e5 commit 5e64477
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -2731,6 +2731,9 @@ int __show_running_run_stats(void)
fio_gettime(&ts, NULL);

for_each_td(td, i) {
if (td->runstate >= TD_EXITED)
continue;

td->update_rusage = 1;
for_each_rw_ddir(ddir) {
td->ts.io_bytes[ddir] = td->io_bytes[ddir];
Expand Down Expand Up @@ -2759,6 +2762,9 @@ int __show_running_run_stats(void)
__show_run_stats();

for_each_td(td, i) {
if (td->runstate >= TD_EXITED)
continue;

if (td_read(td) && td->ts.io_bytes[DDIR_READ])
td->ts.runtime[DDIR_READ] -= rt[i];
if (td_write(td) && td->ts.io_bytes[DDIR_WRITE])
Expand Down

0 comments on commit 5e64477

Please sign in to comment.