]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Update ext/lmdb-safe/lmdb-safe.cc
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 17 Mar 2023 10:11:49 +0000 (11:11 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Mar 2023 10:11:49 +0000 (11:11 +0100)
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
ext/lmdb-safe/lmdb-safe.cc

index ce43d5ae07ce2aa2713d0443c18ae7cd97308f53..78bd11acac2bd5dc5817ba22742e2ac7d8e8804d 100644 (file)
@@ -244,7 +244,7 @@ MDBRWTransactionImpl::MDBRWTransactionImpl(MDBEnv* parent, int flags):
 
   gettime(&tp, true);
 
-  d_txtime = tp.tv_sec * 1E9 + tp.tv_nsec;
+  d_txtime = tp.tv_sec * (1000 * 1000 * 1000) + tp.tv_nsec;
 #endif
 }