fixed lock percentage in case where lockTime > totalTime
Merge pull request #138 from Captainkrtek/lock_time

fixed lock percentage in case where lockTime > totalTime