summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2014-08-24 20:51:00 +0200
committerThomas Graf <tgraf@suug.ch>2014-08-24 20:51:00 +0200
commitccf33755adc7408355ed4eb03a2f8756ba5dc70a (patch)
treec484724aee2efa21d33a3e98613bfe68d7dd048a
parent3cff7715ce795937f246c65576b762892c3d34b9 (diff)
utils: Fix copy_timestamp() accuracy
Fixes: CID 49000 Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index bf49d9f..248d829 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -123,7 +123,7 @@ void update_timestamp(timestamp_t *dst)
void copy_timestamp(timestamp_t *ts1, timestamp_t *ts2)
{
ts1->tv_sec = ts2->tv_sec;
- ts2->tv_usec = ts2->tv_usec;
+ ts1->tv_usec = ts2->tv_usec;
}
float timestamp_diff(timestamp_t *t1, timestamp_t *t2)