diff options
Diffstat (limited to 'libglusterfs/src/timespec.c')
-rw-r--r-- | libglusterfs/src/timespec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libglusterfs/src/timespec.c b/libglusterfs/src/timespec.c index 0df74e61c20..a0c281a1efb 100644 --- a/libglusterfs/src/timespec.c +++ b/libglusterfs/src/timespec.c @@ -60,9 +60,9 @@ void timespec_now (struct timespec *ts) ts->tv_sec, ts->tv_nsec); } -void timespec_adjust_delta (struct timespec ts, struct timespec delta) +void timespec_adjust_delta (struct timespec *ts, struct timespec delta) { - ts.tv_nsec = ((ts.tv_nsec + delta.tv_nsec) % 1000000000); - ts.tv_sec += ((ts.tv_nsec + delta.tv_nsec) / 1000000000); - ts.tv_sec += delta.tv_sec; + ts->tv_nsec = ((ts->tv_nsec + delta.tv_nsec) % 1000000000); + ts->tv_sec += ((ts->tv_nsec + delta.tv_nsec) / 1000000000); + ts->tv_sec += delta.tv_sec; } |