commit | dcfcc6454b20331ed7810ee2b9ff0b7429a82fd0 | [log] [tgz] |
---|---|---|
author | Chris Friedt <cfriedt@meta.com> | Wed Nov 23 21:44:27 2022 -0500 |
committer | Christopher Friedt <chrisfriedt@gmail.com> | Thu Nov 24 19:31:33 2022 -0500 |
tree | 4778feca6222c16c17a68dff795856c86ef7949f | |
parent | 23a1f0a672b307ca9f694e74d9cbb3b2c68398a6 [diff] |
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: Chris Friedt <cfriedt@meta.com>