Fix unit tests and comment

This commit is contained in:
ConfusedPolarBear 2022-06-01 13:45:34 -05:00
parent eb1b781768
commit 6d1ed21bae
2 changed files with 3 additions and 3 deletions

View File

@ -70,11 +70,11 @@ public class TestFPCalc
Assert.True(lhs.Valid);
Assert.Equal(0, lhs.IntroStart);
Assert.Equal(17.92, lhs.IntroEnd);
Assert.Equal(17.792, lhs.IntroEnd);
Assert.True(rhs.Valid);
Assert.Equal(0, rhs.IntroStart);
Assert.Equal(22.784, rhs.IntroEnd);
Assert.Equal(22.656, rhs.IntroEnd);
}
private QueuedEpisode queueEpisode(string path)

View File

@ -21,7 +21,7 @@ public class FingerprinterTask : IScheduledTask
/// <summary>
/// Maximum number of bits (out of 32 total) that can be different between segments before they are considered dissimilar.
/// 8 bits means the audio must be at least 75% similar (1 - 8 / 32).
/// 6 bits means the audio must be at least 81% similar (1 - 6 / 32).
/// </summary>
private const double MaximumDifferences = 6;