fix bug for elog

This commit is contained in:
Ryan Tang 2024-09-30 15:00:36 -04:00
parent 04e27e9d70
commit 6123e307d8

View File

@ -1217,7 +1217,7 @@ void FSUDAQ::StartACQ(){
influx->ClearDataPointsBuffer(); influx->ClearDataPointsBuffer();
} }
if( elogID > 0 && !chkElog->isChecked() && chkSaveData->isChecked() ){ if( elogID > 0 && chkElog->isChecked() && chkSaveData->isChecked() ){
QString msg = "================================= Run-" + QString::number(runID).rightJustified(3, '0') + "<p>" QString msg = "================================= Run-" + QString::number(runID).rightJustified(3, '0') + "<p>"
+ QDateTime::currentDateTime().toString("MM.dd hh:mm:ss") + "<p>" + QDateTime::currentDateTime().toString("MM.dd hh:mm:ss") + "<p>"
+ startComment + "<p>" + startComment + "<p>"
@ -1307,7 +1307,7 @@ void FSUDAQ::StopACQ(){
influx->ClearDataPointsBuffer(); influx->ClearDataPointsBuffer();
} }
if( elogID > 0 && !chkElog->isChecked() && chkSaveData->isChecked()){ if( elogID > 0 && chkElog->isChecked() && chkSaveData->isChecked()){
QString msg = QDateTime::currentDateTime().toString("MM.dd hh:mm:ss") + "<p>" + stopComment + "<p>"; QString msg = QDateTime::currentDateTime().toString("MM.dd hh:mm:ss") + "<p>" + stopComment + "<p>";
uint64_t totalFileSize = 0; uint64_t totalFileSize = 0;
for(unsigned int i = 0 ; i < nDigi; i++){ for(unsigned int i = 0 ; i < nDigi; i++){