- Timestamp:
- 06/08/11 18:50:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/dataLogger.cc
r10931 r10932 537 537 void DataLogger::AddService(const string& server, const string& service, const string&, bool isCmd) 538 538 { 539 //dataLogger does not subscribe to commands 540 if (isCmd) 541 return; 542 539 543 //check the given subscription against black and white lists 540 544 if (!ShouldSubscribe(server, service)) 541 return;542 543 //dataLogger does not subscribe to commands544 if (isCmd)545 545 return; 546 546 … … 672 672 return false; 673 673 674 if (( (fBlackList.find(server + "/") != fBlackList.end()) ||674 if ((fBlackList.find(server + "/") != fBlackList.end()) || 675 675 (fBlackList.find(server + "/" + service) != fBlackList.end()) || 676 (fBlackList.find("/" + service) != fBlackList.end())) )676 (fBlackList.find("/" + service) != fBlackList.end())) 677 677 return false; 678 678 … … 691 691 ostringstream str; 692 692 //calculate time suitable for naming files. 693 Time fTime(time-boost::posix_time::time_duration(12,0,0));693 const Time ftime(time-boost::posix_time::time_duration(12,0,0)); 694 694 695 695 //output it 696 str << path << Time::fmt("/%Y/%m/%d") << f Time;696 str << path << Time::fmt("/%Y/%m/%d") << ftime; 697 697 698 698 //check if target directory exist … … 701 701 702 702 //output base of file name 703 str << Time::fmt("/%Y_%m_%d") << f Time;703 str << Time::fmt("/%Y_%m_%d") << ftime; 704 704 705 705 //output service name
Note:
See TracChangeset
for help on using the changeset viewer.