diff options
| author | Obfuscoder | 2014-10-19 11:54:16 +0200 | 
|---|---|---|
| committer | Obfuscoder | 2014-10-19 11:54:16 +0200 | 
| commit | dd80027b51b3ee71027a2612595aee38e38c0d6e (patch) | |
| tree | 0f0b84efd10e9288695d86b69de324c467fe4e7b /scripts/nact.pl | |
| parent | 263a56d196da657b72ccf2b195b50008d6a988dc (diff) | |
| download | scripts.irssi.org-dd80027b51b3ee71027a2612595aee38e38c0d6e.tar.bz2 | |
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); | 
