Skip to content

Commit 4023632

Browse files
Bugfix during filtering with enabled [StatsIgnore]HoursEnabled/SampledPercentEnabled options
1 parent 0b35b7d commit 4023632

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Forms/MainBox.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,17 @@ private void ScanIndexesFinish(object sender, RunWorkerCompletedEventArgs e) {
239239
|| _.FixType == IndexOp.UPDATE_STATISTICS_SAMPLE
240240
)
241241
&& (
242-
(o.StatsIgnoreHoursEnabled && (DateTime.UtcNow - (DateTime)_.IndexStats).TotalHours < o.StatsIgnoreHours)
242+
(
243+
!o.StatsIgnoreHoursEnabled
244+
||
245+
(o.StatsIgnoreHoursEnabled && (DateTime.UtcNow - (DateTime)_.IndexStats).TotalHours < o.StatsIgnoreHours)
246+
)
243247
||
244-
(o.StatsIgnoreSampledPercentEnabled && _.StatsSampled > o.StatsIgnoreSampledPercent)
248+
(
249+
!o.StatsIgnoreSampledPercentEnabled
250+
||
251+
(o.StatsIgnoreSampledPercentEnabled && _.StatsSampled > o.StatsIgnoreSampledPercent)
252+
)
245253
)
246254
);
247255
}

0 commit comments

Comments
 (0)