Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ovis_event thrstat calculation #1534

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

narategithub
Copy link
Collaborator

When __thrstat_wait_start() was called, the caller was going into INACTIVE state from ACTIVE state. Hence, the duration from wait_end to now was the active time and should be added to proc_tot.

Likewise, when __thrstat_wait_end() was called, the caller just woke up. Hence, the duration from wait_start to now was an INACTIVE time and should be added to wait_tot.

When `__thrstat_wait_start()` was called, the caller was going into
INACTIVE state from ACTIVE state. Hence, the duration from `wait_end` to
`now` was the active time and should be added to `proc_tot`.

Likewise, when `__thrstat_wait_end()` was called, the caller just woke
up. Hence, the duration from `wait_start` to `now` was an INACTIVE time
and should be added to `wait_tot`.
@tom95858 tom95858 merged commit 317058e into ovis-hpc:main Nov 22, 2024
14 checks passed
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.

3 participants