]> git.treefish.org Git - phys/latlib.git/commitdiff
...
authorAlex Schmidt <alex@treefish.org>
Wed, 23 May 2012 12:20:43 +0000 (14:20 +0200)
committerAlex Schmidt <alex@treefish.org>
Wed, 23 May 2012 12:20:43 +0000 (14:20 +0200)
configcache.cpp

index 670f02a02b9d8619c46b389d3536a772d19fc8ff..48c31f4b559ff929be02c51931d14064de31bf2d 100644 (file)
@@ -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;