poliva / lightum

MacBook automatic light sensor daemon
GNU General Public License v2.0
96 stars 29 forks source link

Fixing bug, having smaller count array. #24

Closed ghost closed 11 years ago

ghost commented 11 years ago

countarray stores light count for caculating average, but it doesn't have enough slots to store all light value. It's within 0 to 255. Levels of lights are 256! (not 255). It must have 256 slots to store count all light levels.