From: Alex Schmidt Date: Wed, 23 May 2012 12:20:43 +0000 (+0200) Subject: ... X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/commitdiff_plain/e70a895119965e4cebd223da9aa7053acc36720c ... --- diff --git a/configcache.cpp b/configcache.cpp index 670f02a..48c31f4 100644 --- a/configcache.cpp +++ b/configcache.cpp @@ -80,7 +80,7 @@ bool configcache::isValidInFile(const string& infile) delete[] inchar; - if( truncIn.find( getFileId(true) ) == string::npos ) return false; + if( truncIn.find( getFileId(true) + "_" ) == string::npos ) return false; return true; } @@ -130,7 +130,7 @@ void configcache::writeConfig() time_t secstamp = time(NULL); outFileName.str(""); - outFileName << DATADIR << "/" << secstamp << "_" << getFileId() << ".dat.tmp"; + outFileName << DATADIR << "/" << secstamp << "_" << getFileId() << "_.dat.tmp"; outFile.open( outFileName.str().c_str(), std::ios::binary ); outBuffer = new boost::iostreams::filtering_ostreambuf;