diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-10-19 08:17:48 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-10-19 08:17:48 +0000 |
commit | b641341ac89ed27cf57ac07c48574f0ad4a28968 (patch) | |
tree | 2e251cb12b64551f1428ef5cd0ff44efa68faf1c /perl-install/standalone/net_monitor | |
parent | 945c24889ab1a397da3725ab68ee534cbe520a61 (diff) | |
download | drakx-backup-do-not-use-b641341ac89ed27cf57ac07c48574f0ad4a28968.tar drakx-backup-do-not-use-b641341ac89ed27cf57ac07c48574f0ad4a28968.tar.gz drakx-backup-do-not-use-b641341ac89ed27cf57ac07c48574f0ad4a28968.tar.bz2 drakx-backup-do-not-use-b641341ac89ed27cf57ac07c48574f0ad4a28968.tar.xz drakx-backup-do-not-use-b641341ac89ed27cf57ac07c48574f0ad4a28968.zip |
simplify
Diffstat (limited to 'perl-install/standalone/net_monitor')
-rwxr-xr-x | perl-install/standalone/net_monitor | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor index 8c0d70cfb..b4e8afeb6 100755 --- a/perl-install/standalone/net_monitor +++ b/perl-install/standalone/net_monitor @@ -254,11 +254,10 @@ sub connection() { gtkflush(); - if ($wasconnected == 1) { - $tool_pid = network::tools::stop_interface($default_intf); - } else { - $tool_pid = network::tools::start_interface($default_intf); - } + $tool_pid = + $wasconnected == 1 + ? network::tools::stop_interface($default_intf); + : network::tools::start_interface($default_intf); } sub graph_window_width() { $width - $left_border } |