From ddda531b0e8a171f4bc08b089cbe449fdc85821c Mon Sep 17 00:00:00 2001 From: hadaq Date: Fri, 24 Sep 2010 09:31:30 +0000 Subject: [PATCH] Little fix of smartThreshold. Sergey. --- hadaq/resdata.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hadaq/resdata.c b/hadaq/resdata.c index 7f6db7b..9f56089 100644 --- a/hadaq/resdata.c +++ b/hadaq/resdata.c @@ -236,6 +236,7 @@ int Res_smartThreshold(TheArgs *theArgs, TheStats *theStats) } else if (rate_mean > rate_low && rate_mean <= rate_high) { theArgs->resdown_offset = EVENT_NUM_OFFSET * theArgs->resnumevents / (rate_mean * 10); } else if (rate_mean <= rate_low && (*theStats->evtsRes) > 0) { + theArgs->resdown_offset = EVENT_NUM_OFFSET; return 1; } -- 2.43.0