Skip to content

ps_string() correction for time drift #207

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

Closed
wants to merge 2 commits into from
Closed

Conversation

dansmith01
Copy link
Contributor

@dansmith01 dansmith01 commented May 9, 2025

On Linux, ps_boot_time() and ps_create_time() return different values on different R sessions (issue #206). However, ps_create_time() - ps_boot_time() is constant. This commit changes the value encoded in a ps_string from ps_create_time() to ps_create_time() - ps_boot_time() so that different R sessions can successfully identify a given process.

@dansmith01 dansmith01 changed the title ps_string() correction for time drift per #206 ps_string() correction for time drift May 9, 2025
@dansmith01
Copy link
Contributor Author

@gaborcsardi ready for review

@dansmith01
Copy link
Contributor Author

Cancel that. Looks like ps_create_time() - ps_boot_time() introduces a time drift on windows.

@dansmith01 dansmith01 closed this May 9, 2025
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.

1 participant