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:
Richard Frith-MacDonald 2013-04-08 12:09:58 +00:00
parent a7a6297291
commit 27a4a7328c

View file

@ -484,7 +484,7 @@ replaceFields(NSDictionary *fields, NSString *template)
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.
*/
e = [d objectForKey: @"SeverityTextRegex"];
@ -492,17 +492,17 @@ replaceFields(NSDictionary *fields, NSString *template)
{
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,
* since a non-alarm can never match them.
*/
if (reminder >= 0)
{
s = [d objectForKey: @"SeverityCode"];
if (s != nil && [s intValue] != severity)
{
continue; // Not a match.
}
s = [d objectForKey: @"DurationAbove"];
if (s != nil && duration <= [s intValue])
{