add percent calculate

Change another progress display method, and complete the function.