[CodeFactor] Apply fixes to commit 0606491

This commit is contained in:
codefactor-io
2026-03-12 19:37:50 +00:00
parent 060649192f
commit 8f79257155
384 changed files with 1197 additions and 1215 deletions
@@ -113,7 +113,7 @@ public sealed class UsfValidationTests : IDisposable
usfLinear.Update(new TValue(DateTime.UtcNow, 100.0 + i));
}
// After warmup on a linear trend, USF should be close to the current value
double expectedLinear = 100.0 + (period * 5 - 1);
double expectedLinear = 100.0 + ((period * 5) - 1);
Assert.True(Math.Abs(usfLinear.Last.Value - expectedLinear) < period,
$"USF should track linear trend closely. Expected ~{expectedLinear}, got {usfLinear.Last.Value}");