summaryrefslogtreecommitdiff
path: root/source3/lib/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/time.c')
-rw-r--r--source3/lib/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c
index c80b59a662..a9f7899c7b 100644
--- a/source3/lib/time.c
+++ b/source3/lib/time.c
@@ -474,7 +474,7 @@ int timespec_compare(const struct timespec *ts1, const struct timespec *ts2)
void round_timespec(struct timespec *ts)
{
- ts->tv_sec += ts->tv_nsec >= 500000000 ? 1 : 0;
+ ts->tv_sec = convert_timespec_to_time_t(*ts);
ts->tv_nsec = 0;
}