mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
#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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user