[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] "Stop after" not shown in the Info-Page
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] "Stop after" not shown in the Info-Page
- From: Alexander Bech <alex (at) bakarasse.de>
- Date: Wed, 19 Nov 2008 00:45:50 +0100
- References: <1226702319.11679.13.camel (at) mcdonalddj-dc.austin-energy.net> <7F79BACB04DFE04A9364D9CC9C9632BA02295555 (at) edusm02.education.vic.gov.au> <491EBA92.8060509 (at) bakarasse.de> <4921F1D7.5030800 (at) bakarasse.de> <1226968045.21833.129.camel (at) brick.rhi.hi.is>
- User-agent: Thunderbird 2.0.0.17 (X11/20080925)
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;