orf / gping

Ping, but with a graph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature request] bring a parameter to customize the number of horizontal coordinate points?

wxlg1117 opened this issue · comments

The graphics generated by this tool are very good, but when the execution time is relatively long, such as 24 hours, there are still only three coordinate points on the horizontal axis in the generated graph, which is not easy to compare. Can there be a parameter to customize the coordinate points on the horizontal axis Quantity? Or customize the horizontal axis coordinate point interval, such as one point every ten minutes?

PS:Whether the coordinate point time on the horizontal axis can carry the date?

Snipaste_2023-01-17_19-13-37

Hey @wxlg1117, thanks for the request! Let me have a think about it. I'd rather not add yet another CLI flag for this, but I do agree that we could do with some more labels on the x axis.

About the date, I'm not sure we have the space. Maybe instead we could add a "relative days"? i.e 19:46:49 (-1) that would mean "19:46 yesterday"? Open to suggestions!