fix - division by zero when settings.min == settings.max
Merge pull request #75 from Nordth/master

fix - division by zero when settings.min == settings.max