delete[] inchar;
- if( truncIn.find( getFileId(true) ) == string::npos ) return false;
+ if( truncIn.find( getFileId(true) + "_" ) == string::npos ) return false;
return true;
}
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;
}
boost::iostreams::write(*outBuffer, configMem, configSize);
+
+ outFile.flush();
}
void configcache::addPara(const string& parid, const double& val){