Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Give us option to change format from [Jul '17] to something else, like [6/10/2017-7/9/2017] #72

Open
hub2git opened this issue Sep 2, 2017 · 3 comments

Comments

@hub2git
Copy link
Contributor

hub2git commented Sep 2, 2017

Dear dev,

My vnstat report looks like this:

root@LEDE:~# vnstat 

                      rx      /      tx      /     total    /   estimated
 wlan1:
       Jul '17     57.83 MiB  /  497.46 MiB  /  555.29 MiB
       Aug '17     50.55 MiB  /  369.29 MiB  /  419.84 MiB  /  540.00 MiB
     yesterday         0 KiB  /    2.49 MiB  /    2.49 MiB
         today         0 KiB  /      44 KiB  /      44 KiB  /      --    

 wlan0:
       Jul '17    186.26 MiB  /    1.31 GiB  /    1.49 GiB
       Aug '17    536.69 MiB  /    3.82 GiB  /    4.34 GiB  /    5.60 GiB
     yesterday     39.56 MiB  /  290.88 MiB  /  330.45 MiB
         today      1.94 MiB  /    3.10 MiB  /    5.03 MiB  /     197 MiB

I sometimes find myself looking at the monthly report and seeing something like Jul '17 and wondering, Hmmm... is that
A) the July 10 to August 9 cycle
or
B) the June 10 to July 9 cycle?

Might I suggest giving us the option of renaming them?
Some possible formats:
(Words) July 10, 2017 -- Aug. 9, 2017
or
(Pure numbers) 06/10 - 07/09/2017.

@hub2git hub2git changed the title Suggestion: Give us the option to change format from [Jul '17] to something else, like [6/10/2017-7/9/2017] Suggestion: Give us option to change format from [Jul '17] to something else, like [6/10/2017-7/9/2017] Sep 2, 2017
@vergoh
Copy link
Owner

vergoh commented Oct 11, 2017

You could achieve something close to that by kind of cheating a little bit. It's possible to modify MonthFormat in the configuration file to contain hardcoded characters like the "10" in your case. However, getting the end of the cycle would be a little bit trickier as even the database doesn't really have that information available.

@tolysz
Copy link

tolysz commented Jul 11, 2018

On that note could we have an option to show dates in "ISO 8601" format?

@vergoh
Copy link
Owner

vergoh commented Jul 11, 2018

The ISO 8601 format is the default starting from b6aaf0b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants