Skip to content

Commit

Permalink
c: fix missing hit counter
Browse files Browse the repository at this point in the history
  • Loading branch information
rmg committed Aug 4, 2019
1 parent b37c491 commit 2f6bdf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ void __assert_hit(const unsigned char *buf) {
// is implied.
static void print_hit(const unsigned char *buf) {
INST(hits++);
INST(runlens[40]++);
assert_hit(buf);
printf("%.40s\n", buf);
}
Expand Down Expand Up @@ -444,6 +445,7 @@ Hex string counts by length:
[ 37] 62
[ 38] 1773
[ 39] 61
[ 40] 184227 *
[ 41] 5562
[ 42] 1008
[ 43] 868
Expand Down

0 comments on commit 2f6bdf2

Please sign in to comment.