]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
clientlog: remove unnecessary operation in timestamp conversion
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 14 Dec 2021 09:41:08 +0000 (10:41 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 14 Dec 2021 09:47:26 +0000 (10:47 +0100)
clientlog.c

index 79d643f42bbc32b69f183d31660f6311b84392ad..96cb04e16f868f5d412060d331820ddcf82c697f 100644 (file)
@@ -751,7 +751,7 @@ static void
 int64_to_ntp64(uint64_t ts, NTP_int64 *ntp_ts)
 {
   ntp_ts->hi = htonl(ts >> 32);
-  ntp_ts->lo = htonl(ts & ((1ULL << 32) - 1));
+  ntp_ts->lo = htonl(ts);
 }
 
 /* ================================================== */