[exim-cvs] Fix time usage on non-subtick-resolution platform…

Inizio della pagina
Delete this message
Reply to this message
Autore: Exim Git Commits Mailing List
Data:  
To: exim-cvs
Oggetto: [exim-cvs] Fix time usage on non-subtick-resolution platforms
Gitweb: https://git.exim.org/exim.git/commitdiff/b9ab1e966ed95017bd6fc45acd04e09ec0c128ed
Commit:     b9ab1e966ed95017bd6fc45acd04e09ec0c128ed
Parent:     535c964b8a4855448b8cc39ec301831a2b96c3a9
Author:     Simon Arlott <sa.me.uk>
AuthorDate: Wed Apr 21 17:11:13 2021 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Wed Apr 21 17:12:58 2021 +0100


    Fix time usage on non-subtick-resolution platforms
---
 src/src/exim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/src/src/exim.c b/src/src/exim.c
index 8526cbb..a3983f8 100644
--- a/src/src/exim.c
+++ b/src/src/exim.c
@@ -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;
}