diff options
author | Jeremy Allison <jra@samba.org> | 2009-08-24 15:09:29 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-08-24 15:09:29 -0700 |
commit | 7a6c979299ce5e0bea45ba7f2fe92443ac5a0735 (patch) | |
tree | 10b3fa7981cf7ef51656e12b7888aaa7e39b6b0f /source3 | |
parent | 28409026928a6051f0d0c58da66f6904b98962fd (diff) | |
download | samba-7a6c979299ce5e0bea45ba7f2fe92443ac5a0735.tar.gz samba-7a6c979299ce5e0bea45ba7f2fe92443ac5a0735.tar.bz2 samba-7a6c979299ce5e0bea45ba7f2fe92443ac5a0735.zip |
Use existing time_t rounding function, don't invent my own.
Jeremy.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/time.c | 2 |
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; } |