Skip to content

Commit

Permalink
chore: tune timer tolerance for battery vs accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Nov 10, 2024
1 parent 4cfe16a commit 16b9122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logic/SystemPermissions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SystemPermissions {
checkPermissionsToUpdatePermissionsWindow(startupBlock)
}
}
timerPermissionsToUpdatePermissionsWindow!.tolerance = 0.09
timerPermissionsToUpdatePermissionsWindow!.tolerance = 0.1
CFRunLoopAddTimer(BackgroundWork.systemPermissionsThread.runLoop, timerPermissionsToUpdatePermissionsWindow!, .defaultMode)
}

Expand All @@ -36,7 +36,7 @@ class SystemPermissions {
checkPermissionsWhileAltTabIsRunning()
}
}
timerPermissionsRemovedWhileAltTabIsRunning!.tolerance = 4.9
timerPermissionsRemovedWhileAltTabIsRunning!.tolerance = 1
CFRunLoopAddTimer(BackgroundWork.systemPermissionsThread.runLoop, timerPermissionsRemovedWhileAltTabIsRunning!, .defaultMode)
}

Expand Down

0 comments on commit 16b9122

Please sign in to comment.