Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Bug - Nasty user_func vs divisor-multiplier issue #10122
The user_func is applied before divisor/multiplier in discovery (wrong) and after divisor/multiplier in polling (right).
This issue is not very visible (because the data is correct after first poll anyway). But it impacts the auto-calculation of the sensor_limits (like shown in below exemple)
All tests with user_func adding any constant (like FtoCelsius) will fail and need to be re-calculated. Polling should not be impacted as it is already correct.
Error is visible in the cyberpower test file, for instance :
DO NOT DELETE THIS TEXT
If you would like to test this pull request then please run: