diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-01-18 18:04:22 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-01-18 18:04:22 +0100 |
commit | 1040f78176c7dad57aadbbd023e8ac094606ac25 (patch) | |
tree | 1c074e0960fe2b8c1ab44ebee6c51170de9c9b14 /networking | |
parent | 479bd7af0d24d123326c1ceb447e015e9e2955d7 (diff) | |
download | busybox-w32-1040f78176c7dad57aadbbd023e8ac094606ac25.tar.gz busybox-w32-1040f78176c7dad57aadbbd023e8ac094606ac25.tar.bz2 busybox-w32-1040f78176c7dad57aadbbd023e8ac094606ac25.zip |
ntpd: correct comment: 2^-20 is ~1 microsecond (confused with 10^-20)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ntpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1040 | /* This code adds floating point value on the order of 1.0 | 1040 | /* This code adds floating point value on the order of 1.0 |
1041 | * to a value of ~4 billion (as of years 203x). | 1041 | * to a value of ~4 billion (as of years 203x). |
1042 | * With 52-bit mantissa, "only" 20 bits of offset's precision | 1042 | * With 52-bit mantissa, "only" 20 bits of offset's precision |
1043 | * are used (0.01 attosecond), the rest is lost. | 1043 | * are used (~1 microsecond), the rest is lost. |
1044 | * Some 200 billion years later, when tvc.tv_sec would have | 1044 | * Some 200 billion years later, when tvc.tv_sec would have |
1045 | * 63 significant bits, the precision loss would be catastrophic, | 1045 | * 63 significant bits, the precision loss would be catastrophic, |
1046 | * a more complex code would be needed. | 1046 | * a more complex code would be needed. |