Skip to content

Commit

Permalink
stress-funcret: constify variable rate
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
  • Loading branch information
ColinIanKing committed Apr 8, 2024
1 parent 14f881a commit 88f6157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stress-funcret.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ static int stress_funcret(stress_args_t *args)
stress_set_proc_state(args->name, STRESS_STATE_DEINIT);

for (i = 1, j = 0; i < SIZEOF_ARRAY(stress_funcret_metrics); i++) {
double rate = (stress_funcret_metrics[i].duration > 0) ?
const double rate = (stress_funcret_metrics[i].duration > 0) ?
stress_funcret_metrics[i].count / stress_funcret_metrics[i].duration : 0.0;

if (rate > 0.0) {
Expand Down

0 comments on commit 88f6157

Please sign in to comment.