float to int conversion error - fix #10
Merge pull request #11 from zywy/feature-task-progress-bug

float to int conversion error - fix #10