aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@thor.caida.org>2017-05-24 10:11:04 -0700
committerLuca Deri <lucaderi@thor.caida.org>2017-05-24 10:11:04 -0700
commite1efee8594ac0a2f18e3888dba4423bcdcbab085 (patch)
tree19db7f5f09ffb5887e7a9fe0be59b83125ed99e2 /example
parent993605d4f38e6e63a9ca6fee14a60688ae9df0de (diff)
Added check for searching JSON-C in home directory if not installed
Fixed type
Diffstat (limited to 'example')
-rw-r--r--example/ndpiReader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 6184ea380..c00d630f0 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1314,7 +1314,7 @@ static void saveTopStats(FILE *fp, struct top_stats *stats, int direction, u_int
}
}
- json_object_object_add(jsMain, (direction == DIR_SRC) ? "top.src.pckt.stats" : "top.dst.pckt.stats", jArray_filters);
+ json_object_object_add(jsMain, (direction == DIR_SRC) ? "top.src.pkts.stats" : "top.dst.pkts.stats", jArray_filters);
/*sort top stats by ip addr count*/
HASH_SORT(stats, top_stats_sort);