summaryrefslogtreecommitdiffstats
path: root/deskutils/superkaramba
diff options
context:
space:
mode:
authormarkus <markus@FreeBSD.org>2004-04-02 15:46:35 +0000
committermarkus <markus@FreeBSD.org>2004-04-02 15:46:35 +0000
commit7459ffd7196b0b7958c056962081232e292a0cc6 (patch)
tree47bcc48213cb553f76e1eea133f8d7ae70a0fdb5 /deskutils/superkaramba
parenteda676bdbe32d429787d8e4cd47debdb48bfd499 (diff)
downloadFreeBSD-ports-7459ffd7196b0b7958c056962081232e292a0cc6.zip
FreeBSD-ports-7459ffd7196b0b7958c056962081232e292a0cc6.tar.gz
- fix network sensor when more than one device is used
- bump PORTREVISION PR: ports/64926 Submitted by: Stefan Grundmann <sg-sendpr@waset.de> Approved by: arved (mentor)
Diffstat (limited to 'deskutils/superkaramba')
-rw-r--r--deskutils/superkaramba/Makefile2
-rw-r--r--deskutils/superkaramba/files/patch-networksensor.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/deskutils/superkaramba/Makefile b/deskutils/superkaramba/Makefile
index 227a589..af382a4 100644
--- a/deskutils/superkaramba/Makefile
+++ b/deskutils/superkaramba/Makefile
@@ -6,7 +6,7 @@
PORTNAME= superkaramba
PORTVERSION= 0.33
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= deskutils kde
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= netdragon
diff --git a/deskutils/superkaramba/files/patch-networksensor.cpp b/deskutils/superkaramba/files/patch-networksensor.cpp
index eb1df19..479bee1 100644
--- a/deskutils/superkaramba/files/patch-networksensor.cpp
+++ b/deskutils/superkaramba/files/patch-networksensor.cpp
@@ -75,12 +75,12 @@
+ if (if_number != -1) {
+ size_t if_miblen = 0;
+ if_miblen = sizeof(if_mib);
-+ static int name[] = { CTL_NET,
-+ PF_LINK,
-+ NETLINK_GENERIC,
-+ IFMIB_IFDATA,
-+ if_number,
-+ IFDATA_GENERAL };
++ int name[] = { CTL_NET,
++ PF_LINK,
++ NETLINK_GENERIC,
++ IFMIB_IFDATA,
++ if_number,
++ IFDATA_GENERAL };
+
+ sysctl(name, 6, (void*)&if_mib, (size_t*)&if_miblen, (void*)NULL, (size_t)0);
+
OpenPOWER on IntegriCloud