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

missing February in -s short printout #39

Closed
AlfaBravoX opened this issue Mar 1, 2016 · 4 comments
Closed

missing February in -s short printout #39

AlfaBravoX opened this issue Mar 1, 2016 · 4 comments

Comments

@AlfaBravoX
Copy link

vnstat -s

                  rx      /      tx      /     total    /   estimated

wan0:
Jan '16 4.00 GiB / 3.40 GiB / 7.40 GiB
Mar '16 0.99 GiB / 1.05 GiB / 2.04 GiB / 2.26 GiB
yesterday 18.52 MiB / 23.78 MiB / 42.30 MiB
today 2.90 MiB / 2.39 MiB / 5.29 MiB / 32 MiB

however in standard printout:

vnstat
Database updated: Tue Mar 1 02:55:01 2016

wan0 since 08/03/15

      rx:  16.17 GiB      tx:  11.53 GiB      total:  27.70 GiB

monthly
rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
Jan '16 4.00 GiB | 3.40 GiB | 7.40 GiB | 23.18 kbit/s
Feb '16 0.99 GiB | 1.05 GiB | 2.04 GiB | 7.57 kbit/s
------------------------+-------------+-------------+---------------
estimated 1.10 GiB | 1.16 GiB | 2.26 GiB |

daily
rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
yesterday 18.52 MiB | 23.78 MiB | 42.30 MiB | 4.01 kbit/s
today 2.90 MiB | 2.39 MiB | 5.29 MiB | 4.13 kbit/s
------------------------+-------------+-------------+---------------
estimated 16 MiB | 16 MiB | 32 MiB |

looks like February in -s short printout is missing

@vergoh
Copy link
Owner

vergoh commented Mar 1, 2016

Using which version did this issue occur with? I'm unable to replicate the problem using version 1.15.

@AlfaBravoX
Copy link
Author

vnStat 1.12 by Teemu Toivola , i am on entware, there is no newer version

@vergoh
Copy link
Owner

vergoh commented Mar 2, 2016

Looking again at your output, it appears that only the description of the month is wrong but the numbers stay correct. I believe this is exactly the result of a bug that got fixed in version 1.15:

  • Fix: unintended shared pointer modification in mosecs() sometimes resulted
    in wrong month name to be shown for the current month

@ryzhovau
Copy link

Just for history: vnstat already updated in Entware-ng.

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