--- 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 ) {