Commit cd5baf60 authored by Joanne Hugé's avatar Joanne Hugé

Fix mistake in ts_to_uint function

parent 47d2d882
......@@ -7,7 +7,7 @@
#include "utilities.h"
uint64_t ts_to_uint(struct timespec t) {
return t.tv_nsec * NSEC_PER_SEC + t.tv_sec;
return t.tv_sec * NSEC_PER_SEC + t.tv_nsec;
}
void add_ns(struct timespec *t, uint64_t ns) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment