Coder Social home page Coder Social logo

Comments (5)

vergoh avatar vergoh commented on July 4, 2024

Could you provide before and after upgrade output examples?

The difference may have something to do with the default locale actually working now where as previously it always defaulted to "C" unless "Locale" had been changed in the configuration file or --locale parameter used.

from vnstat.

SjonHortensius avatar SjonHortensius commented on July 4, 2024

Yes you might be right. Previously it would output which, looking at it now, is also just a bunch of unreadable numbers. Since the upgrade the thousands-seperator was added; resulting in:

01 52,124,640 42,572,404    09 74,829,409 62,792,939    17 24,508,501 63,374,345

If I could suggest a feature I'd like this to be configurable so I can change it to MiB or GiB

from vnstat.

vergoh avatar vergoh commented on July 4, 2024

Ok, now I understand the problem. There's indeed a readability issue once you get 10 GiB+ per hour and that's something I haven't tested with any of the outputs. I'll have to implement automatic unit selection also to the hourly output to get this properly solved. The other outputs should be fine up 10 TiB per time period.

The good news is that you can get the old behaviour back simply by changing the configuration from the default

Locale "-"

to

Locale "C"

from vnstat.

SjonHortensius avatar SjonHortensius commented on July 4, 2024

Yes, you're right. Thanks! If the output could also be updated to address the readability for the hourly output that would be great.

from vnstat.

vergoh avatar vergoh commented on July 4, 2024

Depends what I can come up with. Trying to fit everything into a 80x24 character terminal does somewhat restrict what can be shown and how.

from vnstat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.