client: improve ntpdata output
This commit is contained in:
parent
967f3e4f77
commit
88c31b3785
2 changed files with 7 additions and 6 deletions
7
client.c
7
client.c
|
@ -2297,8 +2297,8 @@ process_cmd_ntpdata(char *line)
|
||||||
"Version : %u\n"
|
"Version : %u\n"
|
||||||
"Mode : %M\n"
|
"Mode : %M\n"
|
||||||
"Stratum : %u\n"
|
"Stratum : %u\n"
|
||||||
"Poll : %d\n"
|
"Poll interval : %d (%.0f seconds)\n"
|
||||||
"Precision : %.9f seconds\n"
|
"Precision : %d (%.9f seconds)\n"
|
||||||
"Root delay : %.6f seconds\n"
|
"Root delay : %.6f seconds\n"
|
||||||
"Root dispersion : %.6f seconds\n"
|
"Root dispersion : %.6f seconds\n"
|
||||||
"Reference ID : %R\n"
|
"Reference ID : %R\n"
|
||||||
|
@ -2321,7 +2321,8 @@ process_cmd_ntpdata(char *line)
|
||||||
UTI_IPToString(&local_addr), (unsigned long)UTI_IPToRefid(&local_addr),
|
UTI_IPToString(&local_addr), (unsigned long)UTI_IPToRefid(&local_addr),
|
||||||
reply.data.ntp_data.leap, reply.data.ntp_data.version,
|
reply.data.ntp_data.leap, reply.data.ntp_data.version,
|
||||||
reply.data.ntp_data.mode, reply.data.ntp_data.stratum,
|
reply.data.ntp_data.mode, reply.data.ntp_data.stratum,
|
||||||
reply.data.ntp_data.poll, UTI_Log2ToDouble(reply.data.ntp_data.precision),
|
reply.data.ntp_data.poll, UTI_Log2ToDouble(reply.data.ntp_data.poll),
|
||||||
|
reply.data.ntp_data.precision, UTI_Log2ToDouble(reply.data.ntp_data.precision),
|
||||||
UTI_FloatNetworkToHost(reply.data.ntp_data.root_delay),
|
UTI_FloatNetworkToHost(reply.data.ntp_data.root_delay),
|
||||||
UTI_FloatNetworkToHost(reply.data.ntp_data.root_dispersion),
|
UTI_FloatNetworkToHost(reply.data.ntp_data.root_dispersion),
|
||||||
(unsigned long)ntohl(reply.data.ntp_data.ref_id), &ref_time,
|
(unsigned long)ntohl(reply.data.ntp_data.ref_id), &ref_time,
|
||||||
|
|
|
@ -454,8 +454,8 @@ Leap status : Normal
|
||||||
Version : 4
|
Version : 4
|
||||||
Mode : Server
|
Mode : Server
|
||||||
Stratum : 1
|
Stratum : 1
|
||||||
Poll : 10
|
Poll interval : 10 (1024 seconds)
|
||||||
Precision : 0.000000060 seconds
|
Precision : -24 (0.000000060 seconds)
|
||||||
Root delay : 0.000015 seconds
|
Root delay : 0.000015 seconds
|
||||||
Root dispersion : 0.000015 seconds
|
Root dispersion : 0.000015 seconds
|
||||||
Reference ID : 50505331
|
Reference ID : 50505331
|
||||||
|
@ -489,7 +489,7 @@ reference ID.
|
||||||
*Version*:::
|
*Version*:::
|
||||||
*Mode*:::
|
*Mode*:::
|
||||||
*Stratum*:::
|
*Stratum*:::
|
||||||
*Poll*:::
|
*Poll interval*:::
|
||||||
*Precision*:::
|
*Precision*:::
|
||||||
*Root delay*:::
|
*Root delay*:::
|
||||||
*Root dispersion*:::
|
*Root dispersion*:::
|
||||||
|
|
Loading…
Reference in a new issue