]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
[sysinfo277-irssi] Bug #356
authorbw1 <redacted>
Thu, 8 Jun 2017 14:29:44 +0000 (16:29 +0200)
committerbw1 <redacted>
Thu, 8 Jun 2017 14:29:44 +0000 (16:29 +0200)
Illegal division by zero at line 408

scripts/sysinfo277-irssi.pl

index 782367c43780bb07beeb74f826c54461647d04ee..2df932d56d9acf130609dd1e56330bb96aa15527 100644 (file)
@@ -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 {
git clone https://git.99rst.org/PROJECT