SourceForge has been redesigned. Learn more.
Close

#4 Patch adding new features (eg. sorting switch)

Unstable (example)
closed-accepted
nobody
None
5
2013-05-12
2008-09-04
müzso
No

Added new command line switches:
-s Sorts output by the sent column.
-c Limits the number of updates (useful for tracemode and scripting the
output).
-l Limits the number of processes to be displayed.
-v Sets view mode (0 = KB/s, 1 = total KB, 2 = total B, 3 = total MB)

Changed needrefresh default value from true to false (upon startup there's no useful info on network usage, so displaying any results has no use for the user).

Attached a patch against current (9th Sep 2008) CVS version.

Discussion

  • müzso

    müzso - 2008-09-04

    Logged In: YES
    user_id=1797039
    Originator: YES

    File Added: nethogs-cvs-20080904.patch

     
  • müzso

    müzso - 2008-09-04

    Logged In: YES
    user_id=1797039
    Originator: YES

    Changed the getuid() check into a geteuid() so one can use nethogs as a setuid root binary too.

     
  • Arnout Engelen

    Arnout Engelen - 2013-05-12
    • status: open --> closed-accepted
    • Group: --> Unstable (example)
     
  • Arnout Engelen

    Arnout Engelen - 2013-05-12

    Sorry for taking so long, I merged everything except '-l', which may not be necessary anymore as we're limiting by the terminal height anyway.