Skip to content

change: use sysinfo's swap value for Windows #1436

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

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

ClementTsang
Copy link
Owner

Description

A description of the change, what it does, and why it was made. If relevant (such as any change that modifies the UI), please provide screenshots of the changes:

Since it's a bit confusing, let's use sysinfo's swap calculation for the value we display as swap, and we'll add in a separate PR the committed memory as an extra field.

Issue

If applicable, what issue does this address?

Closes: #1433 #1052

Testing

If relevant, please state how this was tested. All changes must be tested to work:

If this is a code change, please also indicate which platforms were tested:

  • Windows
  • macOS
  • Linux

Checklist

If relevant, ensure the following have been met:

  • Areas your change affects have been linted using rustfmt (cargo fmt)
  • The change has been tested and doesn't appear to cause any unintended breakage
  • Documentation has been added/updated if needed (README.md, help menu, doc pages, etc.)
  • The pull request passes the provided CI pipeline
  • There are no merge conflicts
  • If relevant, new tests were added (don't worry too much about coverage)

I'll add an additional field for committed in a separate PR which shows
the previous value.
Copy link

codecov bot commented Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.85%. Comparing base (c651e9a) to head (3d6ba0c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1436      +/-   ##
==========================================
+ Coverage   55.79%   55.85%   +0.05%     
==========================================
  Files          98       97       -1     
  Lines       18202    18183      -19     
==========================================
  Hits        10156    10156              
+ Misses       8046     8027      -19     
Flag Coverage Δ
macos-12 39.15% <0.00%> (+<0.01%) ⬆️
ubuntu-latest 58.45% <100.00%> (+0.01%) ⬆️
windows-2019 39.33% <0.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ClementTsang ClementTsang merged commit 2ee0df1 into main Mar 28, 2024
@ClementTsang ClementTsang deleted the windows_show_swap_again branch March 28, 2024 02:24
ClementTsang added a commit that referenced this pull request Apr 2, 2024
ClementTsang added a commit that referenced this pull request Apr 2, 2024
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.

Wrong Swap Information on Windows11
1 participant