tst_timer.h: Cosmetic fix
PATCH 1/1 tst_timer.h: Cosmetic fix
Signed-off-by Guangwen Feng <[email protected]>
--- include/tst_timer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/tst_timer.h +3 -3
@@ -95,12 +95,12 @@ static inline struct timeval tst_us_to_timeval(long long us)/* * Converts ms to struct timespec */ -static inline struct timespec tst_ms_to_timespec (long long us) +static inline struct timespec tst_ms_to_timespec (long long ms) {struct timespec ret; - ret.tv_sec = us /1000 ; - ret.tv_nsec = (us %1000 ) *1000000 ; + ret.tv_sec = ms /1000 ; + ret.tv_nsec = (ms %1000 ) *1000000 ;return ret; }
Signature · 1 line
2.9.4
PATCH 1/1 tst_timer.h: Cosmetic fix
include/tst_timer.h static inline struct timeval tst_us_to_timeval(long long us) · line 103
Quoted 12 lines
/*
* Converts ms to struct timespec
*/include/tst_timer.h +3
-3-static inline struct timespec tst_ms_to_timespec (long long us) +static inline struct timespec tst_ms_to_timespec (long long ms) {struct timespec ret; - ret.tv_sec = us /1000 ; - ret.tv_nsec = (us %1000 ) *1000000 ; + ret.tv_sec = ms /1000 ; + ret.tv_nsec = (ms %1000 ) *1000000 ;
Oh yes, us was a bit confusing :-).
Kind regards,
Petr
PATCH 1/1 tst_timer.h: Cosmetic fix
In reply to Guangwen FengHi!
That is a classical case of copy&paste error, thanks for fixing it, pushed.
Signature · 2 lines
Cyril Hrubis [email protected]