Skip to content

ps_string() correction for time drift#207

Closed
dansmith01 wants to merge 2 commits intor-lib:mainfrom
dansmith01:main
Closed

ps_string() correction for time drift#207
dansmith01 wants to merge 2 commits intor-lib:mainfrom
dansmith01:main

Conversation

@dansmith01
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@gaborcsardi ready for review

@dansmith01
Copy link
Copy Markdown
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