Skip to content

Commit 6ae9178

Browse files
committed
Revert "gui: fix idle metric"
This reverts commit 17da1ce.
1 parent 8e48ae1 commit 6ae9178

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/disco/gui/fd_gui_printf.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -693,12 +693,7 @@ fd_gui_printf_tile_timers( fd_gui_t * gui,
693693
JSON. */
694694
idle = -1;
695695
} else {
696-
idle = (double)(
697-
( cur[ i ].caughtup_prefrag_ticks +
698-
cur[ i ].caughtup_postfrag_ticks ) -
699-
( prev[ i ].caughtup_postfrag_ticks +
700-
prev[ i ].caughtup_prefrag_ticks )
701-
) / (cur_total - prev_total);
696+
idle = (double)(cur[ i ].caughtup_postfrag_ticks - prev[ i ].caughtup_postfrag_ticks) / (cur_total - prev_total);
702697
}
703698

704699
jsonp_double( gui, NULL, idle );

0 commit comments

Comments
 (0)