website: manual: refresh qi.html to be reflected on the website
[dragora.git] / patches / perp / clock_gettime.patch
blob4d110a9baf64a6e6cd1749707228c48532fac2ee
1 --- lasagna/tain/tain_now.c.orig 2013-01-11 12:10:32.000000000 -0300
2 +++ lasagna/tain/tain_now.c 2017-05-18 23:45:24.000000000 -0300
3 @@ -13,11 +13,11 @@
4 struct tain *
5 tain_now(struct tain *t)
7 - struct timeval now;
8 + struct timespec now;
10 - gettimeofday(&now, NULL);
11 + clock_gettime(CLOCK_REALTIME, &now);
12 tain_load_utc(t, now.tv_sec);
13 - t->nsec = (1000 * now.tv_usec) + 500;
14 + t->nsec = now.tv_nsec;
16 return t;