Changeset 14419 for trunk/FACT++
- Timestamp:
- 09/20/12 18:11:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/tngweather.cc
r14418 r14419 181 181 struct tm tm; 182 182 183 cout << obj << endl; 184 183 185 vector<char> buf(255); 184 186 if (strptime(obj.c_str(), "%c", &tm)) 185 time = Time(tm.tm_year+1900, tm.tm_mon , tm.tm_mday,186 tm.tm_hour, tm.tm_min, tm.tm_sec);187 time = Time(tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday, 188 tm.tm_hour, tm.tm_min, tm.tm_sec); 187 189 } 188 190 } … … 349 351 { 350 352 if (fLastReport.IsValid() && fLastReport+boost::posix_time::seconds(fInterval*2)>Time()) 351 return 3; 353 return 3; // receiving 352 354 353 355 if (fLastReception.IsValid() && fLastReception+boost::posix_time::seconds(fInterval*2)>Time()) 354 return 2; 355 356 return 1; 356 return 2; // connected 357 358 return 1; // Disconnected 357 359 } 358 360 };
Note:
See TracChangeset
for help on using the changeset viewer.