Skip to content

Commit 00f6800

Browse files
committed
Corrected information about poll/precision usage
1 parent a734f25 commit 00f6800

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ The response from `NtpPacketParser.parse` will always return the following objec
3838
| version | `Integer` | NTP version number, currently 4 |
3939
| mode | `Integer` | Request/response mode |
4040
| stratum | `Integer` | Stratum of the server |
41-
| poll | `Integer` | Integer representing the maximum interval between successive messages (Note: you need to apply `Math.log2` to get the real value) |
42-
| precision | `Integer` | Integer representing the precision of the system clock (Note: you need to apply `Math.log2` to get the real value) |
41+
| poll | `Integer` | Integer representing the maximum interval in log2 seconds between successive messages (Note: you need to apply `Math.pow(2, <value>)` to get the real value) |
42+
| precision | `Integer` | Integer representing the precision of the system clock in log2 seconds (Note: you need to apply `Math.pow(2, <value>)` to get the real value) |
4343
| rootDelay | `Date` | Total round-trip delay to the reference clock |
4444
| rootDispersion | `Date` | Total dispersion to the reference clock |
4545
| referenceId | `String` | String to identify the particular server or reference clock |

0 commit comments

Comments
 (0)