diff options
Diffstat (limited to 'perl-install')
-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 } |