From 8d55247297a335241097cc503a99854bbc79d4cd Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 9 Mar 2017 20:54:43 +0100 Subject: gmon: fix code commented out by mistake Change-Id: If540787e2443330673ad6721094c4765c32ef59b Signed-off-by: Damjan Marion --- src/vpp/api/gmon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vpp/api/gmon.c b/src/vpp/api/gmon.c index 277be8c0af8..6b33373070d 100644 --- a/src/vpp/api/gmon.c +++ b/src/vpp/api/gmon.c @@ -132,8 +132,7 @@ gmon_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f) *gm->vector_rate_ptr = vector_rate; now = vlib_time_now (vm); dt = now - last_runtime; - // TODO - //input_packets = vnet_get_aggregate_rx_packets (); + input_packets = vnet_get_aggregate_rx_packets (); *gm->input_rate_ptr = (f64) (input_packets - last_input_packets) / dt; last_runtime = now; last_input_packets = input_packets; -- cgit 1.2.3-korg