Open moeller0 opened 1 year ago
-m';'
or with the long option --machine-readable=';'
I installed the new binary yesterday and the line buffering and that other odd issue brought to light seems fixed. Looking forward to testing thoroughly once I've got the bash wrapper properly finalized.
@Lochnair I am pleased to report that overall tsping seems to be working just fine. Myself and at least one other have been using it 24/7 for quite a while now. I haven't tested your new handling of write completions on exit because I already accommodate for that in all ping binaries in cake-autorate now anyway by: 1) discarding buffer with any partial writes on exit; and; 2) appending the timestamp onto the end of each line and verifying that the timestamp matches the appended timestamp (belt and braces).
I think once the interval/sleep issue is looked into, it might be time to release this as an official OpenWrt package.
This is rather nifty! Excellent work. I have three questions though: 1) would it be hard to convert
-m
into-m DELIMITER
to allow the usage of e.g.:
instead of ',' as some locales unhelpfully use,
as decimal separator?2) would it be possible to also add a high resolution RTT field that exploits the fact that on the sender side we have higher timestamp resolution than 1ms for both the Originate and the Finished timestamps? (Reporting these with millisecond granularity is excellent, so all I want is essentially an addition RTT field) same for
--icmp-echo
... the high resolution data is already there so why not exploit it? Or would that require too much local state?3) in
--icmp-echo
mode the-D, --print-timestamps Print UNIX timestamps for responses
option seems to not work: