← Commit list

1040f7817

Denys Vlasenko
Denys Vlasenko
2023-01-18
SUCCESS Duration: 161s

Subject

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

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/ntpd.c+1 -1
@@ -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.