Skip to content

Commit

Permalink
Fix field names and print percentiles in reverse order.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Mar 11, 2020
1 parent 58a1983 commit b5d3feb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yara.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,11 +629,11 @@ static void print_rules_stats(

printf(
"number of rules : %d\n",
stats.rules);
stats.num_rules);

printf(
"number of strings : %d\n",
stats.strings);
stats.num_strings);

printf(
"number of AC matches : %d\n",
Expand All @@ -650,7 +650,7 @@ static void print_rules_stats(

printf("match list length percentiles\n");

for (int i = 0; i <= 100; i++)
for (int i = 100; i >= 0; i--)
printf(" %3d: %d\n", i, stats.ac_match_list_length_pctls[i]);
}

Expand Down

0 comments on commit b5d3feb

Please sign in to comment.