[Git][NTPsec/ntpsec][master] attempt to silence sonarcloud merge this if with the containing one

Gary E. Miller gitlab at mg.gitlab.com
Wed Dec 26 21:04:20 UTC 2018


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
7e7e44dc by James Browning at 2018-12-26T11:53:07Z
attempt to silence sonarcloud merge this if with the containing one

- - - - -


1 changed file:

- ntpfrob/precision.c


Changes:

=====================================
ntpfrob/precision.c
=====================================
@@ -82,7 +82,8 @@ default_get_resolution(void)
 		clock_gettime(CLOCK_REALTIME, &tp);
 		diff = tp.tv_nsec - last;
 		if (diff < 0) diff += DNSECS;
-		if (diff > MINSTEP) if (minsteps-- <= 0) break;
+		if (diff > MINSTEP && minsteps-- <= 0)
+			break;
 		last = tp.tv_nsec;
 	}
 	diff /= 1000;	/* step down to milliseconds */



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7e7e44dc6df59c1da9bcfd6ffc7631bd8b26677e

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7e7e44dc6df59c1da9bcfd6ffc7631bd8b26677e
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20181226/ffda840c/attachment.html>


More information about the vc mailing list