#1750 TB feature/statistics issue

Change time to read book formula to: ((total_read_time / read_pages) * (all_pages - current_page))
This commit is contained in:
Alex Pletnev
2015-12-21 08:49:03 +02:00
parent 16509e2d7f
commit 6bf9d75807
2 changed files with 4 additions and 2 deletions

View File

@@ -230,7 +230,8 @@ function ReaderFooter:getProgressPercentage()
end
function ReaderFooter:getBookTimeToRead()
return self:getDataFromStatistics("TB: ", self.pages)
local current_page = self.view.document:getCurrentPage()
return self:getDataFromStatistics("TB: ", self.pages - current_page)
end
function ReaderFooter:getChapterTimeToRead()