Git Product home page Git Product logo

Comments (5)

flytreeleft avatar flytreeleft commented on August 30, 2024

maybe "ifstat -S 1 1" is a goog choice

from tmux-powerline.

erikw avatar erikw commented on August 30, 2024

Might me, the ifstat I have locally don't have the -S switch though so I can't test it.

from tmux-powerline.

flytreeleft avatar flytreeleft commented on August 30, 2024

My ifstat is at version 1.1, and ifstat 1 1 still works fine, first number specified the update time, and second number specified the number of updates before stopping. Thus, we can get one data every time.

from tmux-powerline.

ryran avatar ryran commented on August 30, 2024

I see this happened way back in 2012... and even back then, @erikw said their ifstat didn't have a -S opt. None of the machines I've checked have that option...

$ ifstat -S
ifstat: invalid option -- 'S'
Usage: ifstat [OPTION] [ PATTERN [ PATTERN ] ]
   -h, --help           this message
   -a, --ignore         ignore history
   -d, --scan=SECS      sample every statistics every SECS
   -e, --errors         show errors
   -j, --json           format output in JSON
   -n, --nooutput       do history only
   -p, --pretty         pretty print
   -r, --reset          reset history
   -s, --noupdate       don't update history
   -t, --interval=SECS  report average over the last SECS
   -V, --version        output version information
   -z, --zeros          show entries with zero activity
   -x, --extended=TYPE  show extended stats of TYPE

... and neither do they have a -q, so this segment silently does nothing for me. What was the purpose of the -S and -q options?

from tmux-powerline.

erikw avatar erikw commented on August 30, 2024

@ryran I see that the ifstat from Homebrew has the -S option.
https://github.com/Homebrew/homebrew-core/blob/master/Formula/ifstat.rb

If you are on Linux, maybe see if the segment ifstat_sys works better for you?

https://github.com/erikw/tmux-powerline/blob/master/segments/ifstat_sys.sh

from tmux-powerline.

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.