Changeset 15338 for trunk/FACT++
- Timestamp:
- 04/15/13 10:54:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r15163 r15338 245 245 int infoCallback(const EventImp& evt, unsigned int infoIndex); 246 246 247 Time GetSunRise(const Time &time=Time());247 // Time GetSunRise(const Time &time=Time()); 248 248 249 249 /*************************************************** … … 866 866 CreateDirectory(str.str()); 867 867 868 str << '/' << CompileFileName(service, extension, f CurrentDay);868 str << '/' << CompileFileName(service, extension, ftime);//fCurrentDay); 869 869 870 870 return str.str(); … … 928 928 //the next closing time is 30 minutes after upcoming sunrise. 929 929 //If we are within 30 minutes after sunrise, closing time is soon 930 fCurrentDay = GetSunRise(Time()-boost::posix_time::minutes(30)) + boost::posix_time::minutes(30);//(int)(nowMinusTwelve.Mjd());//nowMinusTwelve.M()*31 + nowMinusTwelve.D();//assume 31 days per month. we do not really care, only want unique number per day of the year930 fCurrentDay = Time().GetNextSunRise();//GetSunRise(Time()-boost::posix_time::minutes(30)) + boost::posix_time::minutes(30);//(int)(nowMinusTwelve.Mjd());//nowMinusTwelve.M()*31 + nowMinusTwelve.D();//assume 31 days per month. we do not really care, only want unique number per day of the year 931 931 lastFlush = Time(); 932 932 … … 1133 1133 fAutoStarted = true; 1134 1134 SetCurrentState(Start()); 1135 // SetCurrentState(NightlyToWaitRun()); 1135 1136 } 1136 1137 else … … 1271 1272 //! Used to know when to close and reopen files 1272 1273 //! 1274 /* 1273 1275 Time DataLogger::GetSunRise(const Time &time) 1274 1276 { … … 1303 1305 #endif 1304 1306 } 1305 1307 */ 1306 1308 // -------------------------------------------------------------------------- 1307 1309 // … … 1357 1359 { 1358 1360 //set the next closing time. If we are here, we have passed 30 minutes after sunrise. 1359 fCurrentDay = GetSunRise(timeNow-boost::posix_time::minutes(30))+boost::posix_time::minutes(30);1361 fCurrentDay = timeNow.GetNextSunRise();//GetSunRise(timeNow-boost::posix_time::minutes(30))+boost::posix_time::minutes(30); 1360 1362 //crawl through the subcriptions and close any open nightly file 1361 1363 SubscriptionsListType::iterator x;
Note:
See TracChangeset
for help on using the changeset viewer.