This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 429a65901f86c6ec5062d79250cdd87b9fe90ea3 Author: ouyangxiangzhen <[email protected]> AuthorDate: Mon Feb 24 09:51:38 2025 +0800 apps/testing: Fix timerjitter iteration This commit used the interval to calculate the timejitter iteration. Signed-off-by: ouyangxiangzhen <[email protected]> --- testing/sched/timerjitter/timerjitter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/sched/timerjitter/timerjitter.c b/testing/sched/timerjitter/timerjitter.c index 56697b2bc..01eed10d5 100644 --- a/testing/sched/timerjitter/timerjitter.c +++ b/testing/sched/timerjitter/timerjitter.c @@ -35,8 +35,8 @@ ****************************************************************************/ #define DEFAULT_CLOCKID CLOCK_REALTIME -#define DEFAULT_INTERVAL 1000 * USEC_PER_TICK -#define DEFAULT_ITERATION 1000 +#define DEFAULT_INTERVAL (1000 * USEC_PER_TICK) +#define DEFAULT_ITERATION (USEC_PER_SEC / DEFAULT_INTERVAL) /* Fix compilation error for Non-NuttX OS */ #ifndef FAR
