[PATCH] testbot/testagentd: Fix the SetTime() RPC on Unix.
30 Oct
2018
30 Oct
'18
2:41 a.m.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> --- testbot/src/testagentd/platform_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testbot/src/testagentd/platform_unix.c b/testbot/src/testagentd/platform_unix.c index 7a3a8f8e0a..560d1210ee 100644 --- a/testbot/src/testagentd/platform_unix.c +++ b/testbot/src/testagentd/platform_unix.c @@ -231,7 +231,7 @@ int platform_settime(uint64_t epoch, uint32_t leeway) tv.tv_sec = epoch; tv.tv_usec = 0; - if (!settimeofday(&tv, NULL)) + if (settimeofday(&tv, NULL)) { set_status(ST_ERROR, "failed to set the time: %s", strerror(errno)); return 0; -- 2.19.1
2690
Age (days ago)
2690
Last active (days ago)
0 comments
1 participants
participants (1)
-
Francois Gouget