fixed division by zero
Merge branch 'master' of github.com:citylive/sparky