Total file count was not reset at end of indexing

This commit is contained in:
Jean-Francois Dockes 2016-08-12 09:04:19 +02:00
parent 8289584aa9
commit cb4ddc3608

View File

@ -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;