style(util): rename tablelength to tableSize

This commit is contained in:
Qingping Hou committed 2016-01-31 14:58:05 -08:00
1 parent fab1f9572f
commit e19f73bdba
3 files changed
+6 -5

No files matched your search

@@ -249,7 +249,7 @@ function ReaderFooter:getDataFromStatistics(title, pages)
local statistics_data = self.ui.doc_settings:readSetting("stats")
local sec = 'na'
if statistics_data and statistics_data.performance_in_pages then
local read_pages = util.tablelength(statistics_data.performance_in_pages)
local read_pages = util.tableSize(statistics_data.performance_in_pages)
local average_time_per_page = statistics_data.total_time_in_sec / read_pages
sec = util.secondsToClock(pages * average_time_per_page, true)
end