From cb4ddc360849686373d5bedf9dcec7f404f2c802 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 12 Aug 2016 09:04:19 +0200 Subject: [PATCH] Total file count was not reset at end of indexing --- src/index/recollindex.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index/recollindex.cpp b/src/index/recollindex.cpp index e903196e..c1a86acd 100644 --- a/src/index/recollindex.cpp +++ b/src/index/recollindex.cpp @@ -122,7 +122,8 @@ class MyUpdater : public DbIxStatusUpdater { // it at the end (status DONE) if (status.phase == DbIxStatus::DBIXS_DONE || status.phase != m_prevphase || m_chron.millis() > 300) { - if (status.totfiles < status.filesdone) { + if (status.totfiles < status.filesdone || + status.phase == DbIxStatus::DBIXS_DONE) { status.totfiles = status.filesdone; } m_prevphase = status.phase;