From: bw1 Date: Thu, 8 Jun 2017 14:29:44 +0000 (+0200) Subject: [sysinfo277-irssi] Bug #356 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=dd36e93052be2d90400b601c8c2fbfc37a637adf;p=irssi-scripts.irssi.org.git [sysinfo277-irssi] Bug #356 Illegal division by zero at line 408 --- diff --git a/scripts/sysinfo277-irssi.pl b/scripts/sysinfo277-irssi.pl index 782367c..2df932d 100644 --- a/scripts/sysinfo277-irssi.pl +++ b/scripts/sysinfo277-irssi.pl @@ -29,7 +29,7 @@ use strict; use vars qw($VERSION %IRSSI); -$VERSION = '2.77'; +$VERSION = '2.78'; %IRSSI = ( authors => 'David Rudie', contact => 'david@inexistent.com', @@ -37,7 +37,7 @@ $VERSION = '2.77'; description => 'Cross-platform/architecture system information script.', license => 'BSD', url => 'http://www.inexistent.com/', - changed => 'Mon Sep 01 04:20 PDT 2003', + changed => '2017-06-08', bugs => 'Probably some if it cannot read /proc.' ); @@ -114,7 +114,9 @@ my $ppc = 1 if $osm =~ /^ppc$/; my $x86_64 = 1 if $osm =~ /^x86_64$/; -my $l26 = 1 if $osv =~ /^2\.6/; +# linux => 2.6 +$osv =~ m/^(\d+\.\d+)/; +my $l26 = 1 if 2.6 <=$1; sub cmd_sysinfo {