aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2017-06-17 07:15:50 -0400
committerLuca <deri@ntop.org>2017-06-17 07:15:50 -0400
commit412cb2e6e8b5e10c3150023ed5a1b74790d0ba5b (patch)
tree0d6f0351c5474bdfdd578e1542705900cf8d67a3 /example
parentb11390429cfa31523d899c94a53e3d3ea1877695 (diff)
Label fix
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 bcf243eeb..4e84bd7fc 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1489,7 +1489,7 @@ static void saveTopStats(json_object **jObj_group,
json_object_object_add(jObj_stat,"flows.percent",json_object_new_double((s->num_flows*100.0)/total_flow_count));
if(s->num_pkts) json_object_object_add(jObj_stat,"flows/packets",
json_object_new_double(((double)s->num_flows)/s->num_pkts));
- else json_object_object_add(jObj_stat,"flows/packets",json_object_new_double(0.0));
+ else json_object_object_add(jObj_stat,"flows.num_packets",json_object_new_double(0.0));
json_object_object_add(jObj_stat,"aggressive.ip",json_object_new_string(s->top_ip));
json_object_object_add(jObj_stat,"protocol",json_object_new_string(s->proto));