diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-04-29 21:27:43 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-04-29 21:27:43 +0000 |
commit | b6c7a14f9dc63a8ca0a145d72dde4a59b03e16fd (patch) | |
tree | 2cb245c94a0da89c2b8529b0cb5909685556bf32 /bin | |
parent | 5892fbd160a966c8a062516f52060ac2bec03505 (diff) | |
download | drakx-net-b6c7a14f9dc63a8ca0a145d72dde4a59b03e16fd.tar drakx-net-b6c7a14f9dc63a8ca0a145d72dde4a59b03e16fd.tar.gz drakx-net-b6c7a14f9dc63a8ca0a145d72dde4a59b03e16fd.tar.bz2 drakx-net-b6c7a14f9dc63a8ca0a145d72dde4a59b03e16fd.tar.xz drakx-net-b6c7a14f9dc63a8ca0a145d72dde4a59b03e16fd.zip |
do not read modules_conf (saves 92 kB of RSS, 25808 -> 25716)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/net_applet | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/net_applet b/bin/net_applet index 34b391c..2301528 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::Notify -init, 'notify'; use ugtk2 qw(:create :helpers :wrappers :dialogs); @@ -34,7 +33,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 = @@ -303,7 +301,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; |