Giter VIP home page Giter VIP logo

Comments (4)

koehn avatar koehn commented on May 1, 2024

Ahh, I see. It's measuring potential speed, not actual speed. I guess I'd rather it output how many KB/s are actually going over the wire at that time instead of a contrived sample.

from linux-dash.

koehn avatar koehn commented on May 1, 2024

Instead of chewing up a GB of bandwidth, just check /sys/class/net/[device]/statistics/rx_bytes (and .../tx_bytes for transmit) two times, one second apart; the difference is the throughput of that interface.

from linux-dash.

manvari avatar manvari commented on May 1, 2024

That would certainly be a better approach to getting the network speed.

Running a speed test by fetching a file from a distant server isn't that bad either, but as @koehn points out, it chews up 1GB of bandwidth every time the network speed counter is refreshed. Why not just grab simple data from the VPS?

from linux-dash.

tariqbuilds avatar tariqbuilds commented on May 1, 2024

@koehn , you make a good point. I have updated the calculation to report the download speed from cURL for now. I have also changed the file from 1GB to 10MB.

I am also going to try to add in the "rx_bytes" method, which I was not aware of before. It is now on a list of enhancements to help make the data gathering process more efficient and cache-able.

Thanks!

from linux-dash.

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.