Commit 21792fa0 authored by Spoorthi K's avatar Spoorthi K Committed by Andrew Boie
Browse files

tests: posix: timer: Fix integer handling issues



Fixes coverity issue and some cosmetic issues through uncrustify.

Fixes: GH-6667

Signed-off-by: default avatarSpoorthi K <spoorthi.k@intel.com>
parent 58967c7d
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -77,8 +77,8 @@ void test_timer(void)
		secs_elapsed = (te.tv_sec - ts.tv_sec - 1);
	}

	total_secs_timer = (u64_t) (value.it_value.tv_sec * NSEC_PER_SEC +
				    value.it_value.tv_nsec + exp_count *
	total_secs_timer = (value.it_value.tv_sec * NSEC_PER_SEC +
			    value.it_value.tv_nsec + (u64_t) exp_count *
			    (value.it_interval.tv_sec * NSEC_PER_SEC +
			     value.it_interval.tv_nsec)) / NSEC_PER_SEC;