diff options
author | markus <markus@FreeBSD.org> | 2004-04-02 15:46:35 +0000 |
---|---|---|
committer | markus <markus@FreeBSD.org> | 2004-04-02 15:46:35 +0000 |
commit | 7459ffd7196b0b7958c056962081232e292a0cc6 (patch) | |
tree | 47bcc48213cb553f76e1eea133f8d7ae70a0fdb5 /deskutils/superkaramba | |
parent | eda676bdbe32d429787d8e4cd47debdb48bfd499 (diff) | |
download | FreeBSD-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/Makefile | 2 | ||||
-rw-r--r-- | deskutils/superkaramba/files/patch-networksensor.cpp | 12 |
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); + |