Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 17c9f0a

Browse files
committed
Fix indexing progress percentage
1 parent 355b605 commit 17c9f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func NewBookListFromDir(path, coverdir string, verbose bool) (*BookList, error)
251251
var books BookList
252252
for i, filename := range matches {
253253
if verbose {
254-
log.Printf("%.f%% Indexing %s\n", float64(i)/float64(len(matches))*100, filename)
254+
log.Printf("%.f%% Indexing %s\n", float64(i+1)/float64(len(matches))*100, filename)
255255
}
256256
book, err := NewBookFromFile(filename, coverdir)
257257
if err != nil {

0 commit comments

Comments
 (0)