Skip to content
Commit 58cc6268 authored by Christopher Friedt's avatar Christopher Friedt Committed by Fabio Baltieri
Browse files

lib: posix: sleep() should report unslept time in seconds



In the case that `sleep()` is interrupted, the POSIX spec requires
it to return the number of "unslept" seconds (i.e. the number of
seconds requested minus the number of seconds actually slept).

Since `k_sleep()` already returns the amount of "unslept" time
in ms, we can simply use that.

Signed-off-by: default avatarChris Friedt <cfriedt@meta.com>
(cherry picked from commit dcfcc645)
parent 7c8eeb15
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment