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

Warning on battery notPresent #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

odonnelln
Copy link

The check currently doesn't trigger a warning on the battery accelerator being "notPresent". The battery status will be "notPresent" if the cache is permanently disabled due to a faulty battery being present.

I have also added in the changes from #16 for the name change

@@ -189,6 +189,8 @@ sub check {
$self->add_info(sprintf 'controller accelerator battery is %s',
$self->{cpqDaAccelBattery});
if ($self->{cpqDaAccelBattery} eq "notPresent") {
# permenently disabled battery return as notPresent even when it is disabled because of a faulty battery

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo. It should read permanently.

@lausser
Copy link
Owner

lausser commented Jul 25, 2024

What if there is no battery on purpose?

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.

3 participants