Changeset 10451


Ignore:
Timestamp:
Apr 21, 2011, 10:10:31 PM (9 years ago)
Author:
tbretz
Message:
Fixed the broken service names; changed default paths to something which will work on all or at least most systems.
File:
1 edited

Legend:

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

    r10442 r10451  
    317317                char* data = new char[dataSize];
    318318                memset(data, 0, dataSize);
    319                 DimService srvc("DATALOGGER/STATS", "x:2;l:1", static_cast<void*>(data), dataSize);
     319                DimService srvc((GetName()+"/STATS").c_str(), "x:2;l:1", static_cast<void*>(data), dataSize);
    320320                double deltaT = 1;
    321321                fPreviousSize = 0;
     
    406406{       
    407407                //initialize member data
    408                 fDailyFileName = "/home/lyard/log";
    409                 fRunFileName = "/home/lyard/log";
     408                fDailyFileName = ".";
     409                fRunFileName = ".";
    410410                fRunNumber = 12345;
    411411#ifdef HAS_FITS
     
    474474                fDimBuffer[sizeof(int)] = '\0';
    475475                //gives the entire buffer size. Otherwise, dim overwrites memory at bizarre locations if smaller size is given at creation time.
    476                 fOpenedFiles =  new DimService("DATALOGGER/FILENAME", "i:1;C", static_cast<void*>(fDimBuffer), 256);
     476                fOpenedFiles =  new DimService((GetName()+"/FILENAME").c_str(), "i:1;C", static_cast<void*>(fDimBuffer), 256);
    477477               
    478478               
Note: See TracChangeset for help on using the changeset viewer.