utils: Fix copy_timestamp() accuracy

Fixes: CID 49000
Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
Thomas Graf 2014-08-24 20:51:00 +02:00
parent 3cff7715ce
commit ccf33755ad

View File

@ -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)