Added check for searching JSON-C in home directory if not installed

Fixed type
This commit is contained in:
Luca Deri
2017-05-24 10:11:04 -07:00
parent 993605d4f3
commit e1efee8594
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -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);