Fix time usage on non-subtick-resolution platforms
authorSimon Arlott <sa.me.uk>
Wed, 21 Apr 2021 16:11:13 +0000 (17:11 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Wed, 21 Apr 2021 16:12:58 +0000 (17:12 +0100)
src/src/exim.c

index 8526cbbf38bd345543c603f585908498efa810ae..a3983f88d02594162bc88910e4c3a540c0e7387d 100644 (file)
@@ -496,7 +496,7 @@ while (exim_tvcmp(&now_tv, tgt_tv) <= 0)
   /* Be prapared to go around if the kernel does not implement subtick
   granularity (GNU Hurd) */
 
-  (void)gettimeofday(&now_tv, NULL);
+  exim_gettime(&now_tv);
   now_true_usec = now_tv.tv_usec;
   now_tv.tv_usec = (now_true_usec/resolution) * resolution;
   }