Fixed wrong reference percentage calculation
Merge pull request #36 from jank0s/master

Fixed wrong reference percentage calculation