[git commit] ntpd: correct comment: 2^-20 is ~1 microsecond (confused with 10^-20)

Denys Vlasenko vda.linux at googlemail.com
Wed Jan 18 17:04:22 UTC 2023


commit: https://git.busybox.net/busybox/commit/?id=1040f78176c7dad57aadbbd023e8ac094606ac25
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/ntpd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/networking/ntpd.c b/networking/ntpd.c
index db04eb272..c7519b8fb 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -1040,7 +1040,7 @@ step_time(double offset)
 	/* This code adds floating point value on the order of 1.0
 	 * to a value of ~4 billion (as of years 203x).
 	 * With 52-bit mantissa, "only" 20 bits of offset's precision
-	 * are used (0.01 attosecond), the rest is lost.
+	 * are used (~1 microsecond), the rest is lost.
 	 * Some 200 billion years later, when tvc.tv_sec would have
 	 * 63 significant bits, the precision loss would be catastrophic,
 	 * a more complex code would be needed.


More information about the busybox-cvs mailing list