Bruce Merry <bmerry at cs dot uct dot ac dot za>
Xdbe (double buffering)
+btlee
+ linkstatus patch (http://forums.gentoo.org/viewtopic-p-2765647.html#2765647)
+
dan-h <dan-h at users dot sourceforge dot net>
adt746x fix
# $Id$
+2005-09-30
+ * Linkstatus patch from btlee on f.g.o (see
+ http://forums.gentoo.org/viewtopic-p-2765647.html#2765647)
+
2005-09-29
* Fixed build on FreeBSD for non-i386
* Made it so top_mem doesn't show all the forks of one process
#include <net/if.h>
#include <math.h>
+#define MIN(a,b) (((a) <= (b)) ? (a) : (b))
+#define MAX(a,b) (((a) >= (b)) ? (a) : (b))
+
static struct sysinfo s_info;
static int show_nice_processes;
sscanf(p, "%*d %d. %d. %d", &l, &m, &n);
- ns->linkstatus = (int) (log(l) / log(92) * 100);
+ ns->linkstatus = (int) (log(MIN(MAX(l,1),92)) / log(92) * 100);
+
}
/*** end wireless patch ***/