prefer || over 'or' (portability w/ ancient Perl)

This commit is contained in:
Glenn Strauss 2022-02-24 02:24:57 -05:00
parent b9beecdc4a
commit e477bc0341

View File

@ -713,7 +713,7 @@ sub getCpuInfo {
my $model = $val;
$model =~ s/ +/ /g;
$cpus->[$cpu]{'model'} = $model;
} elsif ($field eq "bogomips" or $field eq "BogoMIPS") {
} elsif ($field eq "bogomips" || $field eq "BogoMIPS") {
$cpus->[$cpu]{'bogo'} = $val;
} elsif ($field eq "flags") {
$cpus->[$cpu]{'flags'} = processCpuFlags($val);