Skip to content

Refactor monitoring under hotkeys endpoint#77

Merged
ravjotbrar merged 1 commit intomainfrom
hot-keys-endpoint
Nov 19, 2025
Merged

Refactor monitoring under hotkeys endpoint#77
ravjotbrar merged 1 commit intomainfrom
hot-keys-endpoint

Conversation

@ravjotbrar
Copy link
Copy Markdown
Collaborator

No description provided.

const monitorCycle = monitorInterval + monitorDuration
if (currentTime > checkAt) {
const hotkeys = await calculateHotKeys()
checkAt = currentTime + monitorCycle
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this won't stop the monitor and it will keep working

}
const currentTime = Date.now()
const monitorCycle = monitorInterval + monitorDuration
if (currentTime > checkAt) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code can be reached only when monitor is running BUT if the monitor is running, then calculateHotKeys will operate on an incomplete set of data

@ravjotbrar ravjotbrar merged commit 4bb07ab into main Nov 19, 2025
2 checks passed
@ravjotbrar ravjotbrar linked an issue Dec 15, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for hot keys

2 participants