Tobias Klauser f177718f24 format: Add missing braces around 'if' clause
When compiling bmon with gcc 6.1 it complains with the following
warning:

out_format.c: In function ‘get_token’:
out_format.c:134:10: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   } else if (!strncasecmp(token+5, "txrate:", 7))
          ^~
out_format.c:136:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
    return buf;
    ^~~~~~

Indeed, the 'return buf' should only be executed if it was snprintf()'ed
to. Otherwise "unknown" should be returned. Fix this by adding braces.
Also use the 'type' variable in strncasecmp() as in the other checks.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2016-04-28 16:11:30 +02:00
2014-08-30 13:32:49 +02:00
2015-08-09 18:05:56 +02:00
2014-07-06 13:43:45 +02:00
2015-07-25 11:10:41 +02:00
2016-04-20 10:36:06 -03:00

bmon - Bandwidth Monitor

Build Status Coverity Status

bmon is a monitoring and debugging tool to capture networking related statistics and prepare them visually in a human friendly way. It features various output methods including an interactive curses user interface and a programmable text output for scripting.

Download

Debian/Ubuntu Installation

git clone https://github.com/tgraf/bmon.git
cd bmon
apt-get install build-essential make libconfuse-dev libnl-3-dev libnl-route-3-dev libncurses-dev pkg-config dh-autoreconf
./autogen.sh
./configure
make
make install
bmon

OSX Installation

Install libconfuse

wget https://github.com/martinh/libconfuse/releases/download/v2.8/confuse-2.8.zip
unzip confuse-2.8.zip && cd confuse-2.8
PATH=/usr/local/opt/gettext/bin:$PATH ./configure
make
make install

Install bmon

git clone https://github.com/tgraf/bmon.git
cd bmon
./autogen.sh
./configure
make
make install
bmon

New in 3.8

  • Don't disable Netlink if TC stats are unavailable

Usage

To run bmon in the default curses mode:

bmon

There are many other options available and full help is provided via:

bmon --help

Screenshots

Screenshot 1 Screenshot 2

Copyright (c) 2001-2014 Thomas Graf tgraf@suug.ch Copyright (c) 2013 Red Hat, Inc.

Please see the LICENSE.BSD and LICENSE.MIT files for additional details.

Description
bandwidth monitor and rate estimator
Readme 931 KiB
Languages
C 87.6%
M4 11.9%
Makefile 0.4%