summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/net_monitor
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-10-19 08:17:48 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-10-19 08:17:48 +0000
commitb641341ac89ed27cf57ac07c48574f0ad4a28968 (patch)
tree2e251cb12b64551f1428ef5cd0ff44efa68faf1c /perl-install/standalone/net_monitor
parent945c24889ab1a397da3725ab68ee534cbe520a61 (diff)
downloaddrakx-b641341ac89ed27cf57ac07c48574f0ad4a28968.tar
drakx-b641341ac89ed27cf57ac07c48574f0ad4a28968.tar.gz
drakx-b641341ac89ed27cf57ac07c48574f0ad4a28968.tar.bz2
drakx-b641341ac89ed27cf57ac07c48574f0ad4a28968.tar.xz
drakx-b641341ac89ed27cf57ac07c48574f0ad4a28968.zip
simplify
Diffstat (limited to 'perl-install/standalone/net_monitor')
-rwxr-xr-xperl-install/standalone/net_monitor9
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 }