diff options
| author | David Leadbeater | 2014-10-20 22:46:12 +0100 |
|---|---|---|
| committer | David Leadbeater | 2014-10-20 22:46:12 +0100 |
| commit | 5d2811af5d3d29b524936ac95e7b1b3d5144a9ce (patch) | |
| tree | 0f0b84efd10e9288695d86b69de324c467fe4e7b /scripts/nact.pl | |
| parent | 263a56d196da657b72ccf2b195b50008d6a988dc (diff) | |
| parent | dd80027b51b3ee71027a2612595aee38e38c0d6e (diff) | |
| download | scripts.irssi.org-5d2811af5d3d29b524936ac95e7b1b3d5144a9ce.tar.bz2 | |
Merge pull request #81 from obfuscoder/perlcritic-m-r
Fix perlcritic issues for all scripts starting with m to r
Diffstat (limited to 'scripts/nact.pl')
| -rw-r--r-- | scripts/nact.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/nact.pl b/scripts/nact.pl index e4468fe..f814fb3 100644 --- a/scripts/nact.pl +++ b/scripts/nact.pl @@ -109,7 +109,7 @@ sub getBytesLinux() { my @list; my $ignore = 2; - open(FID, "/proc/net/dev"); + open(FID, "<", "/proc/net/dev"); while (<FID>) { if ($ignore > 0) { @@ -130,7 +130,7 @@ sub getBytesLinux() { sub getBytesOBSD() { my @list; - open(FID, "/usr/bin/netstat -nib|"); + open(FID, "-|", "/usr/bin/netstat -nib"); while (<FID>) { my $line = $_; @@ -146,7 +146,7 @@ sub getBytesFBSD() { my @list; my $olddev=""; - open(FID, "/usr/bin/netstat -nib|"); + open(FID, "-|", "/usr/bin/netstat -nib"); while (<FID>) { my $line = $_; @list = split(" ", $line); |
