Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker committed Sep 23, 2019
1 parent 5022194 commit e9004e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Smokeping.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ sub check_alerts {
$gotalert = $match unless $gotalert;
my $edgetrigger = $alert->{edgetrigger} eq 'yes';
my $what;
if ($edgetrigger and $prevmatch != $match) {
if ($edgetrigger and ($prevmatch ? 0 : 1 ) != ($match ? 0 : 1)) {
$what = ($prevmatch == 0 ? "was raised" : "was cleared");
}
if (not $edgetrigger and $match) {
Expand Down

0 comments on commit e9004e8

Please sign in to comment.