my $pri = $state_to_pri{$host_state{$s->{'Host'}}};
my ($best, $besti);
- my $bestpri = -1;
+ my $bestpri = 99;
for my $i (0..$nrows-1) {
my $r = $by_row[$i];
if (!defined $r) {
if ($rpri < $bestpri ||
$rpri == $bestpri && $r->{'LastUpdate'} < $best->{'LastUpdate'}) {
- # Trick: $best must be defined, as otherwise $bestpri == -1
+ # Trick: $best must be defined, as otherwise $bestpri == 99
$best = $r;
$besti = $i;
$bestpri = $rpri;