Skip to content

Commit f442322

Browse files
committed
Merge branch 'main' into winui
2 parents 8ba9ed4 + afebbd3 commit f442322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CommunityToolkit.WinUI.Input.GazeInteraction/OneEuroFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public virtual GazeFilterArgs Update(GazeFilterArgs args)
5757
Point cutoff = new Point(cf, cf);
5858

5959
// determine sampling frequency based on last time stamp
60-
float samplingFrequency = 100000000.0f / Math.Max(1, (args.Timestamp - _lastTimestamp).Ticks);
60+
var samplingFrequency = (float)TimeSpan.TicksPerSecond / Math.Max(1, (args.Timestamp - _lastTimestamp).Ticks);
6161
_lastTimestamp = args.Timestamp;
6262

6363
// calculate change in distance...

0 commit comments

Comments
 (0)