diff options
author | markus <markus@FreeBSD.org> | 2005-01-22 21:22:58 +0800 |
---|---|---|
committer | markus <markus@FreeBSD.org> | 2005-01-22 21:22:58 +0800 |
commit | eb5639980cf59b4d1b6eef5ad03f2a4343e63e2f (patch) | |
tree | a7a3532f741daa028f6d01f70444cf6d837ee6b3 /net/knemo | |
parent | 631d78077e28fc7610ff4d448f074c030f6482dc (diff) | |
download | freebsd-ports-gnome-eb5639980cf59b4d1b6eef5ad03f2a4343e63e2f.tar.gz freebsd-ports-gnome-eb5639980cf59b4d1b6eef5ad03f2a4343e63e2f.tar.zst freebsd-ports-gnome-eb5639980cf59b4d1b6eef5ad03f2a4343e63e2f.zip |
- Fix a problem where the trayicon doesn't indicate network traffic
- Bump PORTREVISION
Diffstat (limited to 'net/knemo')
-rw-r--r-- | net/knemo/Makefile | 1 | ||||
-rw-r--r-- | net/knemo/files/patch-knemod-interfaceupdater.cpp | 27 |
2 files changed, 15 insertions, 13 deletions
diff --git a/net/knemo/Makefile b/net/knemo/Makefile index e16da908d0f8..6849f35e2b78 100644 --- a/net/knemo/Makefile +++ b/net/knemo/Makefile @@ -6,6 +6,7 @@ PORTNAME= knemo PORTVERSION= 0.3.1 +PORTREVISION= 1 CATEGORIES= net kde MASTER_SITES= http://www.eris23.de/knemo/ diff --git a/net/knemo/files/patch-knemod-interfaceupdater.cpp b/net/knemo/files/patch-knemod-interfaceupdater.cpp index 34382254219f..4a743c105842 100644 --- a/net/knemo/files/patch-knemod-interfaceupdater.cpp +++ b/net/knemo/files/patch-knemod-interfaceupdater.cpp @@ -1,5 +1,5 @@ --- knemod/interfaceupdater.cpp.orig Fri Aug 20 20:26:41 2004 -+++ knemod/interfaceupdater.cpp Sat Jan 22 00:56:21 2005 ++++ knemod/interfaceupdater.cpp Sat Jan 22 13:34:49 2005 @@ -17,6 +17,24 @@ Boston, MA 02111-1307, USA. */ @@ -66,7 +66,7 @@ connect( mRouteProcess, SIGNAL( receivedStdout( KProcess*, char*, int ) ), this, SLOT( routeProcessStdout( KProcess*, char*, int ) ) ); connect( mRouteProcess, SIGNAL( receivedStderr( KProcess*, char*, int ) ), -@@ -131,6 +157,137 @@ +@@ -131,6 +157,140 @@ } } #endif @@ -152,8 +152,6 @@ + + close(s); + } -+ -+ interface->activateMonitor(); + } + break; + @@ -200,11 +198,16 @@ + } + freeifaddrs(ifap); + } ++ ++ // Update the display ++ for ( ifIt.toFirst(); ifIt.current(); ++ifIt ) ++ ifIt.current()->activateMonitor(); ++ +#endif // Q_OS_FREEBSD } void InterfaceUpdater::routeProcessExited( KProcess* process ) -@@ -180,6 +337,7 @@ +@@ -180,6 +340,7 @@ void InterfaceUpdater::parseIfconfigOutput() { @@ -212,7 +215,7 @@ /* mIfconfigStdout contains the complete output of 'ifconfig' which we * are going to parse here. */ -@@ -235,10 +393,12 @@ +@@ -235,10 +396,12 @@ } interface->activateMonitor(); } @@ -225,7 +228,7 @@ QRegExp regExp( ".*RX.*:(\\d+).*:\\d+.*:\\d+.*:\\d+" ); if ( regExp.search( config ) > -1 ) data.rxPackets = regExp.cap( 1 ).toULong(); -@@ -318,10 +478,12 @@ +@@ -318,10 +481,12 @@ if ( regExp.search( config ) > -1 ) data.ptpAddress = regExp.cap( 2 ); } @@ -238,7 +241,7 @@ /* mIwconfigStdout contains the complete output of 'iwconfig' which we * are going to parse here. */ -@@ -364,10 +526,12 @@ +@@ -364,10 +529,12 @@ updateWirelessData( configs[key], interface->getWirelessData() ); } } @@ -251,7 +254,7 @@ QRegExp regExp( "ESSID:\"?([^\"]*)\"?" ); if ( regExp.search( config ) > -1 ) data.essid = regExp.cap( 1 ); -@@ -401,6 +565,7 @@ +@@ -401,6 +568,7 @@ regExp.setPattern( "Link Quality:([\\d/]*)" ); if ( regExp.search( config ) > -1 ) data.linkQuality = regExp.cap( 1 ); @@ -259,7 +262,7 @@ } void InterfaceUpdater::parseRouteOutput() -@@ -409,18 +574,26 @@ +@@ -409,16 +577,25 @@ * are going to parse here. */ QMap<QString, QStringList> configs; @@ -284,7 +287,5 @@ configs[routeParameter[7]] = routeParameter; +#endif } -- + /* We loop over the interfaces the user wishs to monitor. - * If we find the interface in the output of 'route' we update - * the data of the interface. |