Ignore:
Timestamp:
07/10/11 15:21:20 (13 years ago)
Author:
tbretz
Message:
Removed obsolete fStatsPeriod; updated statistics
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/datalogger.cc

    r11308 r11317  
    310310    ///configuration flags
    311311    bool fDebugIsOn;
    312     float fStatsPeriodDuration;
     312//    float fStatsPeriodDuration;
    313313    bool fOpenedFilesIsOn;
    314314    bool fNumSubAndFitsIsOn;
     
    987987     //services parameters
    988988     fDebugIsOn = false;
    989      fStatsPeriodDuration = 1.0f;
     989//     fStatsPeriodDuration = 1.0f;
    990990     fOpenedFilesIsOn = true;
    991991     fNumSubAndFitsIsOn = true;
     
    15741574
    15751575    //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());
    15781578
    15791579    //print active run numbers
    15801580    ostringstream str;
     1581    //timeout value
     1582    str << "Timeout delay for old run numbers: " << fRunNumberTimeout << " ms";
     1583    Message(str);
     1584    str.str("");
    15811585    str << "Active Run Numbers:";
    15821586    for (list<RunNumberType>::const_iterator it=fRunNumber.begin(); it!=fRunNumber.end(); it++)
     
    15851589        str << " <none>";
    15861590    Message(str);
    1587     //timeout value
    1588     str.str("");
    1589     str << "Timeout delay for old run numbers: " << fRunNumberTimeout << " ms";
    1590     Message(str);
    15911591
    15921592    //print all the open files.
    1593     Message("------------ OPENED FILES ----------------");
     1593    Message("------------ OPEN FILES ----------------");
    15941594    if (fNightlyLogFile.is_open())
    1595         Message("Nightly log-file: OPEN");
     1595        Message("Nightly log-file:    "+fFullNightlyLogFileName);
    15961596
    15971597    if (fNightlyReportFile.is_open())
    1598         Message("Nightly report-file: OPEN");
     1598        Message("Nightly report-file: "+fFullNightlyReportFileName);
    15991599
    16001600    for (list<RunNumberType>::const_iterator it=fRunNumber.begin(); it!=fRunNumber.end(); it++)
     
    16021602#ifdef RUN_LOGS
    16031603        if (it->logFile->is_open())
    1604             Message("Run log-file: " + it->logName + " (OPEN)");
     1604            Message("Run log-file:    " + it->logName);
    16051605#endif
    16061606        if (it->reportFile->is_open())
    1607             Message("Run report-file: " + it->reportName + " (OPEN)");
     1607            Message("Run report-file: " + it->reportName);
    16081608    }
    16091609
     
    16111611 //   /*const bool statWarning =*/ calculateTotalSizeWritten(statVar, true);
    16121612#ifdef HAVE_FITS
    1613     str << "There are " << fNumSubAndFitsData.numOpenFits << " FITS files open:";
     1613    str.str("");
     1614    str << "Number of open FITS files: " << fNumSubAndFitsData.numOpenFits;
    16141615    Message(str);
     1616    // FIXME: Print list of open FITS files
    16151617#else
    16161618    Message("FITS output disabled at compilation");
    16171619#endif
    16181620    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.");
    16191629    str.str("");
    1620     str << "Total Size written: " << statVar.sizeWritten << " bytes.";
     1630    str << "Total Size written: " << statVar.sizeWritten/1000 << " kB";
    16211631        Message(str);
    16221632    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);
    16311635
    16321636    Message("------------ DIM SUBSCRIPTIONS -----------");
Note: See TracChangeset for help on using the changeset viewer.