-
Notifications
You must be signed in to change notification settings - Fork 124
🔋❓ #38
Comments
@jhersh Thanks for pointing this out. We changed how we poll the battery to speed the startup time, and since I personally don't have a mac without a battery this slipped by me. I'll try to get a fix out for you this week. Thanks! |
…conditional else case if battery max value is not found resulted in ? instead of NULL
yes, confirm, my pr #34 did this, you can easily test this by "mocking" output:
that's the result blind-copy other guys code from forums without really reading it ;) that's where the ? comes from. if you @obihann refer to this bug on 78c3df3 fixed in my develop |
@childnode if you check now I am determining when to show / hide the battery display, we check if the value is empty, but your code would display a % sign with no value when no battery was present. By removing the % until we print then we can properly check if the value was empty and not display it... That being said your pull request looks good as well, so if you can simply resolve the merge conflicts I don't see why we can't get @jhersh to test it out then mark it resolved and release it. |
hi @obihann
and no, the code will not display % sign if no value was parsed when no battery was present. the "merge conflict" resulted in disregarding your commit 78c3df3. HINT: for next release, you should check your differences between master and develop, e.g. README.md which is outdated in develop branch. perhaps you might check the git-flow workflow. it's easy but solves several common workflow problems |
With 78c3df3 the output is |
@childnode @jhersh Sorry for the delay, jumping on this now. I've merged your PR into develop and should have a 1.6 release later this week with it. |
Any news on that 1.6 release? I'm a no-battery user as well (actually a laptop with the battery removed) and would appreciate this improvement. |
I believe we good, latest code via master should contain the fixes. |
This is now in 1.6.0-pr https://github.com/obihann/archey-osx/releases/tag/1.6.0-pr |
archey 1.5.2 on my Mac Pro, which sadly lacks a battery, displays
Battery: ?
as part of its output.I think I preferred archey 1.5.1's take, which omitted the battery line entirely on devices that don't have a battery. I am curious if there's any particular reason for this change? :)
The text was updated successfully, but these errors were encountered: