mu: indexer: update dirstamp with statbuf st_mtime

This commit is contained in:
Dirk-Jan C. Binnema 2020-10-13 23:54:52 +03:00
parent 38b5c25762
commit 9995d28927
1 changed files with 1 additions and 2 deletions

View File

@ -102,7 +102,6 @@ Indexer::Private::handler (const std::string& fullpath, struct stat *statbuf,
{
switch (htype) {
case Scanner::HandleType::EnterDir: {
// in lazy-mode, we ignore this dir if its dirstamp suggest it
// is up-to-date (this is _not_ always true; hence we call it
// lazy-mode)
@ -134,7 +133,7 @@ Indexer::Private::handler (const std::string& fullpath, struct stat *statbuf,
}
case Scanner::HandleType::LeaveDir: {
store_.set_dirstamp(fullpath, ::time({}));
store_.set_dirstamp(fullpath, statbuf->st_mtime);
return true;
}