Skip to content

Commit

Permalink
profiling: fix check to compute average bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber committed Jul 5, 2023
1 parent ebdf482 commit c6bc606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util-profiling-prefilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static void DoDump(SCProfilePrefilterDetectCtx *rules_ctx, FILE *fp, const char
avgticks = (double)(ticks / d->called);
}
double avgbytes = 0;
if (d->total_bytes && d->called) {
if (d->total_bytes && d->bytes_called) {
avgbytes = (double)(d->total_bytes / d->bytes_called);
}
double ticks_per_byte = 0;
Expand Down

0 comments on commit c6bc606

Please sign in to comment.