- Timestamp:
- 07/08/11 15:25:10 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/FilesStatisticsService.cc
r11291 r11292 192 192 //! @param duration the duration between two services update, in second 193 193 // 194 void FilesStatisticsService::SetStatPeriod( float duration)194 void FilesStatisticsService::SetStatPeriod(const float duration) 195 195 { 196 196 if (duration < 0) -
trunk/FACT++/src/FilesStatisticsService.h
r11291 r11292 64 64 bool FileOpened(const string& fileName); 65 65 void SetDebugMode(bool); 66 void SetStatPeriod( float duration);66 void SetStatPeriod(const float duration); 67 67 void GetTotalSizeWritten(FileStatisticsData& data); 68 68 void Reset(); -
trunk/FACT++/src/datalogger.cc
r11291 r11292 2523 2523 { 2524 2524 fDebugIsOn = conf.Get<bool>("debug"); 2525 fFilesStats.SetDebugMode(fDebugIsOn); 2525 2526 2526 2527 //Set the block or allow list … … 2566 2567 fRunNumberTimeout = timeout; 2567 2568 } 2569 2570 //configure the run files directory 2571 if (conf.Has("run_folder")) 2572 { 2573 const string folder = conf.Get<string>("run_folder"); 2574 if (fFilesStats.SetCurrentFolder(folder)) 2575 fRunFilePath = folder; 2576 else 2577 Error("Folder " + folder + " given through configuration seems invalid. Ignoring it"); 2578 } 2579 2580 //configure the nightly files directory 2581 if (conf.Has("nightly_folder")) 2582 { 2583 const string folder = conf.Get<string>("nightly_folder"); 2584 if (fFilesStats.SetCurrentFolder(folder)) 2585 fNightlyFilePath = folder; 2586 else 2587 Error("Folder " + folder + " given through configuration seems invalid. Ignoring it"); 2588 } 2589 2590 //check if we have overwritten badly the directory being watched for free space 2591 if (conf.Has("run_folder") && !conf.Has("nightly_folder")) 2592 {//we've set the run folder for free space. we've decided it should be the nightly one. thus override it 2593 fFilesStats.SetCurrentFolder(fNightlyFilePath); 2594 } 2595 2596 //configure the interval between statistics updates 2597 if (conf.Has("stats_interval")) 2598 { 2599 const float interval = conf.Get<float>("stats_interval"); 2600 fFilesStats.SetStatPeriod(interval); 2601 } 2602 2603 //configure if the filenames service is on or off 2604 if (conf.Has("filename_service")) 2605 { 2606 fOpenedFilesIsOn = conf.Get<bool>("filename_service"); 2607 } 2608 2609 //configure if the number of subscriptions and fits files is on or off. 2610 if (conf.Has("numsubs_service")) 2611 { 2612 fNumSubAndFitsIsOn = conf.Get<bool>("numsubs_service"); 2613 } 2614 2568 2615 return -1; 2569 2616 } … … 2727 2774 ("group,g", vars<string>(), "Grouping of services into a single run-Fits") 2728 2775 ("runtimeout", var<long>(), "Time out delay for old run numbers") 2776 ("nightly_folder", var<string>(), "Base path for the nightly files") 2777 ("run_folder", var<string>(), "Base path for the run files") 2778 ("stats_interval", var<float>(), "Interval in seconds between two files statistics update") 2779 ("filename_service", po_bool(), "Should the filename service be enabled?") 2780 ("numsubs_service", po_bool(), "Should the number of subscriptions service be enabled?") 2729 2781 ; 2730 2782
Note:
See TracChangeset
for help on using the changeset viewer.