diff options
author | Janne Peltonen <janne.peltonen@nokia.com> | 2022-01-27 12:15:36 +0200 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2022-02-03 13:12:27 +0200 |
commit | 61c3fe8360a44a4467ce593878c75069cec18f42 (patch) | |
tree | 1056d8a750cb7228d4e8368ff4eec110afdae169 /example | |
parent | d8cc626b8f3631ee93dba42cad2446de696305dd (diff) |
example: l3fwd: print stats and check elapsed time more often
Shorten the sleep time in the loop that prints statistics and checks if
elapsed time has exceeded the requested duration. This shortens execution
time closer to the requested duration.
Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'example')
-rw-r--r-- | example/l3fwd/odp_l3fwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/l3fwd/odp_l3fwd.c b/example/l3fwd/odp_l3fwd.c index 8debb2010..7d6b15af0 100644 --- a/example/l3fwd/odp_l3fwd.c +++ b/example/l3fwd/odp_l3fwd.c @@ -28,7 +28,7 @@ #define MAX_NB_ROUTE 32 #define INVALID_ID (-1) -#define PRINT_INTERVAL 10 /* interval seconds of printing stats */ +#define PRINT_INTERVAL 1 /* interval seconds of printing stats */ /** Get rid of path in filename - only for unix-type paths using '/' */ #define NO_PATH(file_name) (strrchr((file_name), '/') ? \ |