From eb2c8523b6bc72e6d671159dfb39594c2632c08c Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 12 May 2008 12:25:13 +0000 Subject: do not read modules_conf (saves 92 kB of RSS) --- bin/net_applet | 4 +--- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.1