8000 deps: bump battery to 0.8.1 to fix M1 health bug by ClementTsang · Pull Request #1195 · ClementTsang/bottom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

deps: bump battery to 0.8.1 to fix M1 health bug #1195

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
Jun 9, 2023

Conversation

ClementTsang
Copy link
Owner
@ClementTsang ClementTsang commented Jun 9, 2023

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:

This fixes an issue where M1 macOS would report far lower battery health values than reasonable; the fix was done upstream in the starship-battery crate which we rely on, and so updating it fixes the issue.

Much thanks to @WenqingZong for reporting the issue in the first place and making the fix upstream!

Issue

If applicable, what issue does this address?

Closes: #1164

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)

@codecov
Copy link
codecov bot commented Jun 9, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (88bf64a) 30.99% compared to head (3ff6b05) 30.99%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1195   +/-   ##
=======================================
  Coverage   30.99%   30.99%           
=======================================
  Files          96       96           
  Lines       16541    16541           
=======================================
  Hits         5127     5127           
  Misses      11414    11414           
Flag Coverage Δ
macos-12 33.00% <ø> (ø)
ubuntu-latest 32.53% <ø> (ø)
windows-2019 33.10% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ClementTsang ClementTsang force-pushed the update_battery_0.8.1 branch from 0838376 to 294fc3c Compare June 9, 2023 04:07
@ClementTsang ClementTsang force-pushed the update_battery_0.8.1 branch from 294fc3c to 3ff6b05 Compare June 9, 2023 04:28
@ClementTsang ClementTsang marked this pull request as ready for review June 9, 2023 04:29
@ClementTsang ClementTsang merged commit e4eaeb1 into master Jun 9, 2023
@ClementTsang ClementTsang deleted the update_battery_0.8.1 branch June 9, 2023 04:47
@ClementTsang
Copy link
Owner Author

@all-contributors please add @WenqingZong for code.

@allcontributors
Copy link
Contributor

@ClementTsang

I've put up a pull request to add @WenqingZong! 🎉

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.

Incorrect battery health in MacOS
1 participant
0