Changeset 11022 for trunk/FACT++/src
- Timestamp:
- 06/14/11 18:42:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/scheduler.cc
r11019 r11022 156 156 string fDBName; 157 157 158 159 160 158 int Schedule() 161 159 { … … 167 165 time_duration repostime(0, 5, 0); 168 166 //ptime startsched=microsec_clock::local_time(); 169 ptime startsched(microsec_clock::local_time()); 170 ptime stopsched=startsched+years(1); 167 168 const ptime startsched(microsec_clock::local_time()); 169 const ptime stopsched=startsched+years(1); 171 170 172 171 ostringstream str; … … 198 197 } 199 198 199 cout << (string)what[9] << " | " << fDBName << " | " << endl; 200 201 200 202 const string user = what[2]; 201 203 const string passwd = what[4]; 202 204 const string server = what[5]; 203 string db = what[9]; 204 if (fDBName.size()!=0) 205 db = fDBName; 206 const int port = atoi(string(what[7]).c_str()); 205 const string db = fDBName.empty() ? what[9] : fDBName; 206 const int port = atoi(string(what[7]).c_str()); 207 207 208 208 ostringstream dbnamemsg; … … 252 252 253 253 ObservationParameters olist[res.num_rows()]; 254 vector<FixedObs> obsfixedlist;255 vector<StdObs> obsstdlist;254 vector<FixedObs> obsfixedlist; 255 vector<StdObs> obsstdlist; 256 256 vector<ScheduledObs> obslist; 257 257 vector<ScheduledRun> runlist;
Note:
See TracChangeset
for help on using the changeset viewer.