Closed eric-s-raymond closed 3 years ago
I'll try to review this at some point tomorrow.
I'm withdrawing this pull request - it was based on a misunderstanding of Dave's requirements. I'll submit a smaller, cleaner one soon.
Ok, haven't had a chance to review it anyway, so sounds like that's for the best. :)
I cloned from your forked repo but the output doesn't look quite right (missing comma after first field and rtt field not showing up).
I think the way I'd like to see this done is to add a -c boolean flag that switches the output format written to whatever is specified to -o, then update the corresponding docs, etc, rather than switching formats in the user output code. That way we can walk through the RoundTrips in the Result struct and implement it in a cleaner way. I'm also not sure we want units in the fields themselves, but probably just in the header, and ns might be better for external consumption.
This is easy enough for me that I'll offer to do it, today or tomorrow, if this functionality is still useful for you. How does that sound?