Hummer12007 / brightnessctl

A program to read and control device brightness
Other
900 stars 48 forks source link

Fixed exponential function not working #93

Closed Pahheb closed 8 months ago

Pahheb commented 10 months ago

Due to the percent and exponent variables being represented in double instead of float, the usage of the powf function resulted in the wrong calculation and therefore incorrect functionality of the exponent, as stated in the issue #84.

Changing this function to its double equivalent - pow, fixes this.

Hummer12007 commented 9 months ago

@Pahheb would you mind copy-pasting the output before and after your patch? I'll verify it by myself later otherwise.

Hummer12007 commented 8 months ago

Didn't manage to find any difference in the output with the current version. Addressed #84 separately