20 Commits

Author SHA1 Message Date
969cebd4ae
Fix build in FreeBSD/DragonflyBSD 2018-11-11 21:40:17 +03:30
Thomas Graf
1b3f11bde3 4.0 release
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2016-12-13 11:56:40 +01:00
Baptiste Jonglez
a3d894000b Use a monotonic clock instead of a realtime clock
Using a realtime clock is a bad idea: it is affected by any kind of time
change, which can happen when the administrator modifies the system time,
or more simply when a laptop suspends to RAM and then wakes up from sleep.

With the current approach of using a realtime clock:

- if the system time jumps forward (e.g. when resuming after a
  suspend-to-RAM), bmon would take 100% CPU and display random graph data
  extremely fast, until it "catches up" with the new time.

- if the system time jumps backwards, bmon would freeze until *time*
  "catches up" to the point it was before.  bmon then (incorrectly)
  displays a spike in the graph, because lots of packets have been
  sent/received since the last update.

Instead of using gettimeofday(), switch to clock_gettime() with
CLOCK_MONOTONIC on systems that support it.  OS X does not provide
clock_gettime(), so this commit also adds a Mach-specific implementation.

This change has been tested on Linux 4.1 with glibc and musl, and on
FreeBSD 10.0-RELEASE-p12.
2016-11-12 19:29:39 +01:00
Thomas Graf
df271c43a4 3.9 release
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2016-07-19 23:16:10 +02:00
Thomas Graf
0103671f1f Check for presence of pkg-config in configure
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2016-01-29 18:15:47 +01:00
Thomas Graf
964f48465a 3.8 release
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-07-25 11:10:41 +02:00
Thomas Graf
30946f2d78 bmon 3.7 release
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-06-30 12:09:54 +02:00
Thomas Graf
baabc8b729 3.6 release
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-11-22 13:33:24 +01:00
Gustavo Zacarias
c4ed01f272 build: uclinux is also linux 2014-11-11 20:37:21 -03:00
Thomas Graf
7f8d60f40f 3.5 release
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-30 13:36:46 +02:00
Thomas Graf
a29f6da2c5 3.4 release
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-24 14:14:50 +02:00
Thomas Graf
a2c0e3d08e 3.3 release
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-07-06 13:51:29 +02:00
Thomas Graf
e30ab3ad3d Install bmon.conf in examples dir in package doc
Defaults are fine, no need to clutter sysconfdir with a useless
default config file.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-07-06 13:41:04 +02:00
Žilvinas Valinskas
c62eb9de44 osx: bmon v3.2 compiles and links
Signed-off-by: Žilvinas Valinskas <zilvinas.valinskas@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-06-02 15:03:14 +02:00
Žilvinas Valinskas
0cf2ba344d Fix ${target_os} expansion.
Adds missing AC_CANONICAL_{TARGET,SYSTEM} calls in configure.ac
to initialize ${target_os} and other variables. Without changes
${target_os} is always undefined (an empty string).
2014-04-30 23:17:21 +03:00
Marcin Szymkowski
15ba68f584 Update configure.ac
I reckon to add "requires libnl3-dev" instead of only libnl. I was trying to ./configure bmon for about 15 mins without success only because error message was showing me that my system is missing libnl not libnl3 :-(
2013-12-03 11:23:22 +01:00
Thomas Graf
d47fffc5bb Bump for 3.2 release 2013-10-07 12:35:33 +02:00
Thomas Graf
d3ebae78ad List headers noninst to make them part of the distribution 2013-07-05 15:25:19 +02:00
Thomas Graf
55a9cc28ce Prepare for 3.1 release 2013-07-05 15:16:25 +02:00
Thomas Graf
3be703f67d Initial import 2013-07-05 15:11:46 +02:00