Skip to content

Commit

Permalink
Repeated statistics of total IO
Browse files Browse the repository at this point in the history
when calc_total, the processIo = sum(child threads), so when calc, should not add tid!=pid.
  • Loading branch information
wangsirun committed Mar 18, 2024
1 parent dd2dbd1 commit 09a2508
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ inline void calc_total(struct xxxid_stats_arr *cs,double *read,double *write) {
*read=*write=0;

for (i=0;i<cs->length;i++) {
if (cs->arr[i]->pid!=cs->arr[i]->tid)
continue;
if (!config.f.accumulated) {
*read+=cs->arr[i]->read_val;
*write+=cs->arr[i]->write_val;
Expand Down

0 comments on commit 09a2508

Please sign in to comment.