From c4851e78e4f63338fe9a4883e5b7a0370dce27f7 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Mon, 5 Apr 2004 03:11:39 +0000 Subject: Presenting GNOME 2.6.0. The FreeBSD GNOME Team feels this our best release ever. It fixes many bugs, and adds some features missing in previous FreeBSD ports. To help users upgrade from GNOME 2.4, we have constructed an upgrade FAQ at: http://www.freebsd.org/gnome/docs/faq26.html Please read it carefully. GNOME 2.6 packages are also available for all supported i386 versions of FreeBSD at: http://www.marcuscom.com/tinderbox/ The FreeBSD GNOME Team would like the thank the following users for their wonderful testing and patching efforts. We would especially like to thank Franz Klammer for his wonderful new splash screen. Without these people, our team, and our team alumni, GNOME on FreeBSD would not be possible. Jeremy Messenger Khairil Yusof Koop Mast Simon Barner Tom McLaughlin Scott Dodson Vladimir Grebenschikov --- .../files/patch-multiload::linux-proc.c | 84 ---------------------- 1 file changed, 84 deletions(-) delete mode 100644 x11/gnome-applets/files/patch-multiload::linux-proc.c (limited to 'x11/gnome-applets/files/patch-multiload::linux-proc.c') diff --git a/x11/gnome-applets/files/patch-multiload::linux-proc.c b/x11/gnome-applets/files/patch-multiload::linux-proc.c deleted file mode 100644 index 9eb916f2b59f..000000000000 --- a/x11/gnome-applets/files/patch-multiload::linux-proc.c +++ /dev/null @@ -1,84 +0,0 @@ ---- multiload/linux-proc.c.orig Thu Jul 10 04:26:58 2003 -+++ multiload/linux-proc.c Mon Nov 17 23:54:38 2003 -@@ -5,12 +5,17 @@ - #include - #include - #include -+#ifdef __FreeBSD__ -+#include -+#include -+#endif - - #include - #include - #include - #include - #include -+#include - - #include "linux-proc.h" - -@@ -33,6 +38,10 @@ - static unsigned needed_loadavg_flags = - (1 << GLIBTOP_LOADAVG_LOADAVG); - -+static unsigned needed_netload_flags = -+(1 << GLIBTOP_NETLOAD_IF_FLAGS) + -+(1 << GLIBTOP_NETLOAD_BYTES_TOTAL); -+ - void - GetLoad (int Maximum, int data [4], LoadGraph *g) - { -@@ -236,6 +245,44 @@ - int delta[COUNT_TYPES], i; - static int ticks = 0; - static gulong past[COUNT_TYPES] = {0}; -+#ifdef __FreeBSD__ -+ struct if_nameindex *ifindex, *ifptr; -+ static int max = 500; -+ -+ ifindex = if_nameindex(); -+ if (!ifindex) -+ return; -+ -+ memset(present, 0, sizeof (present)); -+ -+ for (ifptr = ifindex; ifptr->if_index && ifptr->if_name; ifptr++) -+ { -+ int index; -+ glibtop_netload netload; -+ -+ glibtop_get_netload(&netload, ifptr->if_name); -+ if (!netload.flags) -+ continue; -+ -+ assert ((netload.flags & needed_netload_flags) == needed_netload_flags); -+ -+ if (!(netload.if_flags & (1L << GLIBTOP_IF_FLAGS_UP))) -+ continue; -+ if (netload.if_flags & (1L << GLIBTOP_IF_FLAGS_LOOPBACK)) -+ continue; -+ -+ if (netload.if_flags & (1L << GLIBTOP_IF_FLAGS_POINTOPOINT)) { -+ index = strncmp(ifptr->if_name, "sl", 2) ? PPP_COUNT : SLIP_COUNT; -+ } else { -+ index = ETH_COUNT; -+ } -+ -+ present[index] += netload.bytes_total; -+ } -+ -+ if_freenameindex(ifindex); -+ -+#else - static char *netdevfmt = NULL; - char *cp, buffer[256]; - FILE *fp; -@@ -317,6 +364,7 @@ - } - - fclose(fp); -+#endif - - for (i = 0; i < 5; i++) - data[i] = 0; -- cgit v1.2.3