Changeset 11317 for trunk/FACT++/src/datalogger.cc
- Timestamp:
- 07/10/11 15:21:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r11308 r11317 310 310 ///configuration flags 311 311 bool fDebugIsOn; 312 float fStatsPeriodDuration;312 // float fStatsPeriodDuration; 313 313 bool fOpenedFilesIsOn; 314 314 bool fNumSubAndFitsIsOn; … … 987 987 //services parameters 988 988 fDebugIsOn = false; 989 fStatsPeriodDuration = 1.0f;989 // fStatsPeriodDuration = 1.0f; 990 990 fOpenedFilesIsOn = true; 991 991 fNumSubAndFitsIsOn = true; … … 1574 1574 1575 1575 //print the path configuration 1576 Message("Nightly Path: " + boost::filesystem::system_complete(boost::filesystem::path(fNightlyFilePath)).directory_string());1577 Message("Run Path:" + boost::filesystem::system_complete(boost::filesystem::path(fRunFilePath)).directory_string());1576 Message("Nightly path: " + boost::filesystem::system_complete(boost::filesystem::path(fNightlyFilePath)).directory_string()); 1577 Message("Run path: " + boost::filesystem::system_complete(boost::filesystem::path(fRunFilePath)).directory_string()); 1578 1578 1579 1579 //print active run numbers 1580 1580 ostringstream str; 1581 //timeout value 1582 str << "Timeout delay for old run numbers: " << fRunNumberTimeout << " ms"; 1583 Message(str); 1584 str.str(""); 1581 1585 str << "Active Run Numbers:"; 1582 1586 for (list<RunNumberType>::const_iterator it=fRunNumber.begin(); it!=fRunNumber.end(); it++) … … 1585 1589 str << " <none>"; 1586 1590 Message(str); 1587 //timeout value1588 str.str("");1589 str << "Timeout delay for old run numbers: " << fRunNumberTimeout << " ms";1590 Message(str);1591 1591 1592 1592 //print all the open files. 1593 Message("------------ OPEN EDFILES ----------------");1593 Message("------------ OPEN FILES ----------------"); 1594 1594 if (fNightlyLogFile.is_open()) 1595 Message("Nightly log-file: OPEN");1595 Message("Nightly log-file: "+fFullNightlyLogFileName); 1596 1596 1597 1597 if (fNightlyReportFile.is_open()) 1598 Message("Nightly report-file: OPEN");1598 Message("Nightly report-file: "+fFullNightlyReportFileName); 1599 1599 1600 1600 for (list<RunNumberType>::const_iterator it=fRunNumber.begin(); it!=fRunNumber.end(); it++) … … 1602 1602 #ifdef RUN_LOGS 1603 1603 if (it->logFile->is_open()) 1604 Message("Run log-file: " + it->logName + " (OPEN)");1604 Message("Run log-file: " + it->logName); 1605 1605 #endif 1606 1606 if (it->reportFile->is_open()) 1607 Message("Run report-file: " + it->reportName + " (OPEN)");1607 Message("Run report-file: " + it->reportName); 1608 1608 } 1609 1609 … … 1611 1611 // /*const bool statWarning =*/ calculateTotalSizeWritten(statVar, true); 1612 1612 #ifdef HAVE_FITS 1613 str << "There are " << fNumSubAndFitsData.numOpenFits << " FITS files open:"; 1613 str.str(""); 1614 str << "Number of open FITS files: " << fNumSubAndFitsData.numOpenFits; 1614 1615 Message(str); 1616 // FIXME: Print list of open FITS files 1615 1617 #else 1616 1618 Message("FITS output disabled at compilation"); 1617 1619 #endif 1618 1620 Message("----------------- STATS ------------------"); 1621 if (fFilesStats.GetUpdateInterval()>0) 1622 { 1623 str.str(""); 1624 str << "Statistics are updated every " << fFilesStats.GetUpdateInterval() << " ms"; 1625 Message(str); 1626 } 1627 else 1628 Message("Statistics updates are currently disabled."); 1619 1629 str.str(""); 1620 str << "Total Size written: " << statVar.sizeWritten << " bytes.";1630 str << "Total Size written: " << statVar.sizeWritten/1000 << " kB"; 1621 1631 Message(str); 1622 1632 str.str(""); 1623 str << "Disk free space: " << statVar.freeSpace << " bytes."; 1624 Message(str); 1625 str.str(""); 1626 str << "Statistics are updated every " << fStatsPeriodDuration << " seconds"; 1627 if (fStatsPeriodDuration != 0) 1628 Message(str); 1629 else 1630 Message("Statistics updates are currently disabled"); 1633 str << "Disk free space: " << statVar.freeSpace/1000000 << " MB"; 1634 Message(str); 1631 1635 1632 1636 Message("------------ DIM SUBSCRIPTIONS -----------");
Note:
See TracChangeset
for help on using the changeset viewer.