mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-19 18:11:26 +00:00
fix error in last mod
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@36492 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a7a6297291
commit
27a4a7328c
1 changed files with 6 additions and 6 deletions
12
EcAlerter.m
12
EcAlerter.m
|
@ -484,7 +484,7 @@ replaceFields(NSDictionary *fields, NSString *template)
|
||||||
continue; // Not a match.
|
continue; // Not a match.
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This can be used to decide whether an alert is
|
/* These two can be used to decide whether an alert is
|
||||||
* for an alarm or not.
|
* for an alarm or not.
|
||||||
*/
|
*/
|
||||||
e = [d objectForKey: @"SeverityTextRegex"];
|
e = [d objectForKey: @"SeverityTextRegex"];
|
||||||
|
@ -492,17 +492,17 @@ replaceFields(NSDictionary *fields, NSString *template)
|
||||||
{
|
{
|
||||||
continue; // Not a match.
|
continue; // Not a match.
|
||||||
}
|
}
|
||||||
|
s = [d objectForKey: @"SeverityCode"];
|
||||||
|
if (s != nil && [s intValue] != severity)
|
||||||
|
{
|
||||||
|
continue; // Not a match.
|
||||||
|
}
|
||||||
|
|
||||||
/* The next set are performed only for alarms,
|
/* The next set are performed only for alarms,
|
||||||
* since a non-alarm can never match them.
|
* since a non-alarm can never match them.
|
||||||
*/
|
*/
|
||||||
if (reminder >= 0)
|
if (reminder >= 0)
|
||||||
{
|
{
|
||||||
s = [d objectForKey: @"SeverityCode"];
|
|
||||||
if (s != nil && [s intValue] != severity)
|
|
||||||
{
|
|
||||||
continue; // Not a match.
|
|
||||||
}
|
|
||||||
s = [d objectForKey: @"DurationAbove"];
|
s = [d objectForKey: @"DurationAbove"];
|
||||||
if (s != nil && duration <= [s intValue])
|
if (s != nil && duration <= [s intValue])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue