summaryrefslogtreecommitdiffstats
path: root/scripts/seti.pl
diff options
context:
space:
mode:
authorDavid Leadbeater2015-01-10 17:26:59 +0000
committerDavid Leadbeater2015-01-10 17:26:59 +0000
commit1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (patch)
tree03d3b85d868a72a6b162c7dca8ea7c0173510618 /scripts/seti.pl
parent6fa0cda4b3f7d54d5835fe580795e4f35980cc28 (diff)
parent55e10f5aeb6d0559518623a432263d4a73d7614b (diff)
downloadscripts.irssi.org-1bae3cffef57d4d46d0230aa4f44cc52c7671b93.tar.bz2
Merge pull request #83 from obfuscoder/perlcritic-s-z
Fix perlcritic issues for all scripts starting with s to z
Diffstat (limited to 'scripts/seti.pl')
-rw-r--r--scripts/seti.pl14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/seti.pl b/scripts/seti.pl
index 01678ac..cb0f489 100644
--- a/scripts/seti.pl
+++ b/scripts/seti.pl
@@ -1,5 +1,5 @@
# This is not a well written script, but it works. I hope.
-
+use strict;
use Irssi;
use vars qw($VERSION %IRSSI);
@@ -18,18 +18,18 @@ $VERSION = '0.1';
sub seti_info {
- $WHERES_SETI_STATE_SAH = Irssi::settings_get_str('seti_state_sah');
+ my $WHERES_SETI_STATE_SAH = Irssi::settings_get_str('seti_state_sah');
my ($data, $server, $witem) = @_;
- $args =~ s/\s+$//;
- open(INFO, "$WHERES_SETI_STATE_SAH");
- for($tmp = 0; $tmp < 5; $tmp++) {
+ my $line;
+ open(INFO, "<", $WHERES_SETI_STATE_SAH);
+ for(my $tmp = 0; $tmp < 5; $tmp++) {
$line = <INFO>;
}
close(INFO);
- $proc = substr($line, 7, 4)/100;
- my $output = "progress of this SETI@home workunit: $proc%";
+ my $proc = substr($line, 7, 4)/100;
+ my $output = "progress of this SETI\@home workunit: $proc%";
if($data)
{