You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For only -tr, that shouldn't be hard too implement. Most likely the JSON output would need to contain a little bit more information (begin and end dates, duration etc.) than the current textual output in order to support more diverse uses.
This appears to be at least partially a duplicate of issue #25.
Hah, my fault - I overlooked that somehow. I did look at the other issues but that one appears to have escaped me. Thank you again and my apologies for the dupe.
As I've noticed the -tr requires a minimum of a 2 second duration to check (that's what my config option is now). Currently, I'm just using regexp to parse the output as a string. Being able to specify the duration with a command line argument would be slick as well.
You can already provide -tr with a numeric parameter that will then define the duration in seconds. At least the man page has that documentation. :-)
The 2 second minimum is there to a least average the result a little bit. I recall that the data source vnStat uses updates only about once every second.
Greetings,
I have a feature request -
It would be very helpful to my platform and usage needs if it were possible to get the -tr argument output in JSON format.
Thank you for work on this great product.
The text was updated successfully, but these errors were encountered: