From ee764e36e708f0868dd8c34e04b0834149f10923 Mon Sep 17 00:00:00 2001 From: damien Date: Thu, 20 Sep 2001 12:02:33 +0000 Subject: less gethostbyname --- perl-install/standalone/net_monitor | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install/standalone/net_monitor') diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor index bc37802c5..693875436 100755 --- a/perl-install/standalone/net_monitor +++ b/perl-install/standalone/net_monitor @@ -372,11 +372,12 @@ sub update { } @interfaces = @intfs; my $netc={}; - if(connected() == !$isconnected) { + my $connected_now = connected(); + if($connected_now == !$isconnected) { $isconnected = $isconnected ? 0 : 1; $label_c->set($isconnected ? _("Disconnect") : _("Connect")); $statusbar->pop(1); - $statusbar->push(1, connected() ? _("Connected") : _("Not connected")); + $statusbar->push(1, $connected_now ? _("Connected") : _("Not connected")); $isconnected ? $pix_c->set($pix_c_map, $pix_c_mask) : $pix_c->set($pix_d_map, $pix_d_mask); } if (!(-e $connect_file && -e $disconnect_file)) { -- cgit v1.2.1