Skip to content

Do not call dstate_delinfo() for LB-condition variables#796

Merged
jimklimov merged 1 commit intonetworkupstools:masterfrom
flobernd:bugfix/apcupsd-ignorelb
Oct 7, 2020
Merged

Do not call dstate_delinfo() for LB-condition variables#796
jimklimov merged 1 commit intonetworkupstools:masterfrom
flobernd:bugfix/apcupsd-ignorelb

Conversation

@flobernd
Copy link
Copy Markdown
Contributor

This commit fixes the ignorelb flag for the apcupsd-ups driver. Previusly "battery.charge" and "battery.runtime" was cleared before invoking status_commit() which caused the LB-condition to always be false.

This commit fixes the `ignorelb` flag for the `apcupsd-ups` driver. Previusly "battery.charge" and "battery.runtime" was cleared before invoking `status_commit()` which caused the LB-condition to always be `false`.
Copy link
Copy Markdown
Member

@jimklimov jimklimov left a comment

Choose a reason for hiding this comment

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

Seems reasonable, hope it worked in HW testing :)

@jimklimov jimklimov merged commit 99ebb1a into networkupstools:master Oct 7, 2020
@flobernd
Copy link
Copy Markdown
Contributor Author

flobernd commented Oct 7, 2020

Thanks for merging. Yes, I tested extensively with my local APC device. Should be fine!

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.

2 participants