mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 15:45:07 -05:00
client: print intervals in seconds up to 1200 seconds
This covers random variations in the default maximum polling interval.
This commit is contained in:
2
client.c
2
client.c
@@ -1540,7 +1540,7 @@ print_seconds(unsigned long s)
|
|||||||
|
|
||||||
if (s == (uint32_t)-1) {
|
if (s == (uint32_t)-1) {
|
||||||
printf(" -");
|
printf(" -");
|
||||||
} else if (s <= 1024) {
|
} else if (s < 1200) {
|
||||||
printf("%4ld", s);
|
printf("%4ld", s);
|
||||||
} else if (s < 36000) {
|
} else if (s < 36000) {
|
||||||
printf("%3ldm", s / 60);
|
printf("%3ldm", s / 60);
|
||||||
|
|||||||
Reference in New Issue
Block a user