From 2bf6bd56f5b95b7b9a33a044668863f7cf5d8af3 Mon Sep 17 00:00:00 2001 From: dockes Date: Tue, 7 Nov 2006 06:41:44 +0000 Subject: [PATCH] record/show mtime instead of ctime --- src/index/indexer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index/indexer.cpp b/src/index/indexer.cpp index 799ba6ec..81a5b437 100644 --- a/src/index/indexer.cpp +++ b/src/index/indexer.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: indexer.cpp,v 1.43 2006-10-25 11:50:49 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: indexer.cpp,v 1.44 2006-11-07 06:41:44 dockes Exp $ (C) 2004 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -367,7 +367,7 @@ DbIndexer::processone(const std::string &fn, const struct stat *stp, bool hadNullIpath = false; Rcl::Doc doc; char ascdate[20]; - sprintf(ascdate, "%ld", long(stp->st_ctime)); + sprintf(ascdate, "%ld", long(stp->st_mtime)); while (fis == FileInterner::FIAgain) { doc.erase();