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: refresh process memory on Windows on first update #1085

Conversation

vthib
Copy link
Contributor

@vthib vthib commented Sep 29, 2023

The first time a process is refreshed on windows, its memory values are not fetched. This is only done on a second refresh.

Fix this my moving the refresh memory into the process update function so that it is called
everytime the process is updated.

Fixes #1084

@GuillaumeGomez
Copy link
Owner

Nice, thanks! Two things to do: fix clippy warnings and add a test to ensure that the memory information is queried for processes on all supported platforms.

@vthib vthib force-pushed the fix-windows-process-memory-refresh branch from d300a3d to 12e3a0a Compare October 12, 2023 15:12
@vthib
Copy link
Contributor Author

vthib commented Oct 12, 2023

Sorry about the delay! Week-end happened and then I completely forgot about this. Should be ok now

The first time a process is refreshed on windows, its memory values are
not fetched. This is only done on a second refresh.

Fix this my moving the refresh memory into the process update function.
@vthib vthib force-pushed the fix-windows-process-memory-refresh branch from 12e3a0a to bc86118 Compare October 12, 2023 15:45
@GuillaumeGomez
Copy link
Owner

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit ae650f7 into GuillaumeGomez:master Oct 14, 2023
67 checks passed
@vthib vthib deleted the fix-windows-process-memory-refresh branch October 16, 2023 09:18
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.

process memory/virtual_memory on windows is only set on second refresh
2 participants