Skip to content
Snippets Groups Projects
Commit 095a9ffa authored by Stephen A. Wood's avatar Stephen A. Wood Committed by Stephen Wood
Browse files

Strip comments from scaler config DB file lines

parent eb22c012
No related branches found
No related tags found
No related merge requests found
......@@ -353,7 +353,8 @@ THaAnalysisObject::EStatus THcScalerEvtHandler::Init(const TDatime& date)
vector<string> dbline;
while( fgets(cbuf, LEN, fi) != NULL) {
std::string sinput(cbuf);
std::string sin(cbuf);
std::string sinput(sin.substr(0,sin.find_first_of("#")));
if (fDebugFile) *fDebugFile << "string input "<<sinput<<endl;
dbline = vsplit(sinput);
if (dbline.size() > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment