ntpq peers formatting needs floating point for time slots.
Eric S. Raymond
esr at thyrsus.com
Sun Feb 5 11:46:16 UTC 2017
Achim Gratz <Stromeko at nexgo.de>:
>> The current code prints out each line as soon as the data is returned from
>> the server. Another approach would be to collect it all so we could scan the
>> column and use the 4th digit if everything would fit.
> I'm not sure what the implication of waiting for all data really is. It
> would certainly work for the things I use ntpq for, but that may not be
> the case for other folks. What I had in mind was to simply allocate the
> available space more intelligently based on what we can know before
> statrting to print out the data.
You can't know enough to be "intelligent" before the per-host data arrives.
And if you wait for all data, the tool can become painful to use due to DNS
Basically there are no happy answers here.
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Please consider contributing to my Patreon page at https://www.patreon.com/esr
so I can keep the invisible wheels of the Internet turning. Give generously -
the civilization you save might be your own.
More information about the devel