fix: attempt to call local start_time (number) (#9086)

Follow up https://github.com/koreader/koreader/pull/8999
reviewable/pr9088/r1
Martín Fernández 2 years ago committed by GitHub
parent 617bb896f9
commit 49c02790f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -261,12 +261,12 @@ function CalibreMetadata:init(dir, is_search)
if is_search then
self:cleanUnused(is_search)
msg = string.format("(search) in %.3f milliseconds: %d books",
time.to_ms(time.since(start_time())), #self.books)
time.to_ms(time.since(start_time)), #self.books)
else
local deleted_count = self:prune()
self:cleanUnused()
msg = string.format("in %.3f milliseconds: %d books. %d pruned",
time.to_ms(time.since(start_time())), #self.books, deleted_count)
time.to_ms(time.since(start_time)), #self.books, deleted_count)
end
logger.info(string.format("calibre info loaded from disk %s", msg))
return true

Loading…
Cancel
Save