ALT Linux Bugzilla
– Attachment 2227 Details for
Bug 13149
shows interface inactive, if one contains label
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
patch for using sysfs by default
knemo-0.4.8-alt-sysfs-backend.patch (text/plain), 3.66 KB, created by
Sergey Bolshakov
on 2007-10-17 17:14:18 MSD
(
hide
)
Description:
patch for using sysfs by default
Filename:
MIME Type:
Creator:
Sergey Bolshakov
Created:
2007-10-17 17:14:18 MSD
Size:
3.66 KB
patch
obsolete
>--- knemo-0.4.8/src/kcm/configdialog.cpp~ 2007-05-24 22:51:55 +0400 >+++ knemo-0.4.8/src/kcm/configdialog.cpp 2007-10-17 16:36:46 +0400 >@@ -269,7 +269,7 @@ void ConfigDialog::load() > > // select the backend from the config file > bool foundBackend = false; >- QString backend = config->readEntry( "Backend", "Nettools" ); >+ QString backend = config->readEntry( "Backend", "Sys" ); > int i; > for ( i = 0; KCMRegistry[i].name != QString::null; i++ ) > { >@@ -282,7 +282,7 @@ void ConfigDialog::load() > > if ( !foundBackend ) > { >- i = 0; // use the first backend (Nettools) >+ i = 0; // use the first backend (Sys) > } > mDlg->comboBoxBackends->setCurrentItem( i ); > mDlg->textLabelBackendDescription->setText( KCMRegistry[i].description ); >--- knemo-0.4.8/src/knemod/backends/daemonregistry.h~ 2007-05-24 22:52:02 +0400 >+++ knemo-0.4.8/src/knemod/backends/daemonregistry.h 2007-10-17 16:27:18 +0400 >@@ -46,8 +46,8 @@ struct DaemonRegistryEntry > > DaemonRegistryEntry DaemonRegistry[] = > { >- { "Nettools", NetToolsBackend::createInstance }, > { "Sys", SysBackend::createInstance }, >+ { "Nettools", NetToolsBackend::createInstance }, > { QString::null, 0 } > }; > >--- knemo-0.4.8/src/knemod/backends/kcmregistry.h~ 2007-05-24 22:52:02 +0400 >+++ knemo-0.4.8/src/knemod/backends/kcmregistry.h 2007-10-17 16:40:00 +0400 >@@ -42,12 +42,6 @@ struct KCMRegistryEntry > > KCMRegistryEntry KCMRegistry[] = > { >- { "Nettools", >- i18n( "Uses the tools from the nettool packge like ifconfig, " \ >- "iwconfig and route to read the necessary information " \ >- "from the ouput of these commands.\n" \ >- "This backend works rather stable but causes a relativly " \ >- "high CPU load." ) }, > { "Sys", > i18n( "Uses the sys filesystem available in 2.6 kernels and " \ > "direct system calls to the Linux kernel.\n" \ >@@ -55,6 +49,12 @@ KCMRegistryEntry KCMRegistry[] = > "As an advantage this backend should reduce the CPU load " \ > "and should not access the harddisc while gathering " \ > "information." ) }, >+ { "Nettools", >+ i18n( "Uses the tools from the nettool packge like ifconfig, " \ >+ "iwconfig and route to read the necessary information " \ >+ "from the ouput of these commands.\n" \ >+ "This backend works rather stable but causes a relativly " \ >+ "high CPU load." ) }, > { QString::null, QString::null } > }; > >--- knemo-0.4.8/src/knemod/knemodaemon.cpp~ 2007-05-24 22:52:03 +0400 >+++ knemo-0.4.8/src/knemod/knemodaemon.cpp 2007-10-17 16:38:00 +0400 >@@ -58,7 +58,7 @@ KNemoDaemon::KNemoDaemon( const QCString > // select the backend from the config file > KConfig* config = new KConfig( "knemorc", true ); > config->setGroup( "General" ); >- mBackendName = config->readEntry( "Backend", "Nettools" ); >+ mBackendName = config->readEntry( "Backend", "Sys" ); > delete config; > > bool foundBackend = false; >@@ -74,7 +74,7 @@ KNemoDaemon::KNemoDaemon( const QCString > > if ( !foundBackend ) > { >- i = 0; // use the first backend (Nettools) >+ i = 0; // use the first backend (Sys) > } > mBackend = ( *DaemonRegistry[i].function )( mInterfaceDict ); > >@@ -195,7 +195,7 @@ void KNemoDaemon::reparseConfiguration() > mPollTimer->changeInterval( mGeneralData.pollInterval * 1000 ); > > // select the backend from the config file >- QString backend = config->readEntry( "Backend", "Nettools" ); >+ QString backend = config->readEntry( "Backend", "Sys" ); > > if ( mBackendName != backend ) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13149
: 2227