profiling: fix check to compute average bytes

pull/9288/head
Philippe Antoine 2 years ago committed by Victor Julien
parent 1f9767a9cb
commit 4bb2241f56

@ -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;

Loading…
Cancel
Save