[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] "Stop after" not shown in the Info-Page



Anna Jonna Armannsdottir schrieb:
On mán, 2008-11-17 at 23:36 +0100, Alexander Bech wrote:
I have found the bug (?) in loadalerts.c in the line 1081 (-less
than/+greater than):
-               if (recip->criteria && recip->criteria->maxduration &&
(recip->criteria->maxduration < maxdur)) ...
+               if (recip->criteria && recip->criteria->maxduration &&
(recip->criteria->maxduration > maxdur)) ...

Brilliant! This has been bugging me for a while. Please post a patch ASAP. :)
//here's the patch (attached)

Alex


--- loadalerts.c	2008-11-19 00:19:58.000000000 +0100
+++ ./lib/loadalerts.c	2008-11-19 00:22:08.000000000 +0100
@@ -1078,7 +1078,7 @@
 		if (printrule->criteria) mindur = printrule->criteria->minduration;
 		if (recip->criteria && recip->criteria->minduration && (recip->criteria->minduration > mindur)) mindur = recip->criteria->minduration;
 		if (printrule->criteria) maxdur = printrule->criteria->maxduration;
-		if (recip->criteria && recip->criteria->maxduration && (recip->criteria->maxduration < maxdur)) maxdur = recip->criteria->maxduration;
+		if (recip->criteria && recip->criteria->maxduration && (recip->criteria->maxduration > maxdur)) maxdur = recip->criteria->maxduration;
 		if (printrule->criteria && printrule->criteria->timespec) timespec = printrule->criteria->timespec;
 		if (recip->criteria && recip->criteria->timespec) {
 			if (timespec == NULL) timespec = recip->criteria->timespec;