summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-12 12:25:13 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-12 12:25:13 +0000
commiteb2c8523b6bc72e6d671159dfb39594c2632c08c (patch)
treeb28168a576cf6d0dadee338ff39dfe2868f1e53e
parent0b5def01271c34d72f0303c2af94a1df9ef10dc3 (diff)
downloaddrakx-net-eb2c8523b6bc72e6d671159dfb39594c2632c08c.tar
drakx-net-eb2c8523b6bc72e6d671159dfb39594c2632c08c.tar.gz
drakx-net-eb2c8523b6bc72e6d671159dfb39594c2632c08c.tar.bz2
drakx-net-eb2c8523b6bc72e6d671159dfb39594c2632c08c.tar.xz
drakx-net-eb2c8523b6bc72e6d671159dfb39594c2632c08c.zip
do not read modules_conf (saves 92 kB of RSS)
-rwxr-xr-xbin/net_applet4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/net_applet b/bin/net_applet
index c3b7ddc..c48612a 100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -19,7 +19,6 @@ use network::ifw;
use network::monitor;
use network::signal_strength;
use detect_devices;
-use modules;
use Gtk2::TrayIcon;
@@ -36,7 +35,6 @@ my ($current_state, $current_interface, $current_description, $simple_menu, $men
add_icon_path("/usr/share/libDrakX/pixmaps/");
my $net = {};
-my $modules_conf = modules::any_conf->read;
my $watched_interface;
my %pixbufs =
@@ -309,7 +307,7 @@ sub go2State {
my $need_update;
my ($old_interface, $old_description);
if ($current_interface ne $interface) {
- my $card = find { $_->[0] eq $interface } network::connection::ethernet::get_eth_cards($modules_conf);
+ my $card = find { $_->[0] eq $interface } network::connection::ethernet::get_eth_cards();
if ($state_type eq 'disconnected') {
$old_interface = $current_interface;
$old_description = $current_description;