summaryrefslogtreecommitdiffstats
path: root/src/vlib/threads.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-10-01 13:34:23 -0400
committerOle Trøan <otroan@employees.org>2019-10-04 12:49:16 +0000
commitcefa74829acab2426a0d984f754d2efd6d4a65a4 (patch)
tree163b8fe2353263d1c74d6bceb3d761ff147ea1ee /src/vlib/threads.c
parentb7c4a5c76f5a823dce29a1f654e0acb3dce8876d (diff)
vlib: improve summary vector-rate statistics
Type: refactor Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I4b77879b0a84fdec3c1518a972cf003d5135222d Signed-off-by: Ole Troan <ot@cisco.com> (cherry picked from commit a8df85ce1fe957efa8301bd5b5ac3c03737d31f1)
Diffstat (limited to 'src/vlib/threads.c')
-rw-r--r--src/vlib/threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/threads.c b/src/vlib/threads.c
index 49b6e811240..d5f247abb95 100644
--- a/src/vlib/threads.c
+++ b/src/vlib/threads.c
@@ -1432,7 +1432,7 @@ vlib_worker_thread_barrier_sync_int (vlib_main_t * vm, const char *func_name)
for (i = 1; i < vec_len (vlib_mains); i++)
max_vector_rate =
clib_max (max_vector_rate,
- vlib_last_vectors_per_main_loop_as_f64 (vlib_mains[i]));
+ (f64) vlib_last_vectors_per_main_loop (vlib_mains[i]));
vlib_worker_threads[0].barrier_sync_count++;