- Timestamp:
- Jan 16, 2010, 2:02:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnseph.cpp
r2260 r2262 486 486 void t_ephGlo::read(const QStringList& lines) { 487 487 488 static const double secPerWeek = 7 * 86400.0; 489 488 490 for (int ii = 1; ii <= lines.size(); ii++) { 489 491 QTextStream in(lines.at(ii-1).toAscii()); … … 509 511 _gps_utc = gnumleap(int(year), int(month), int(day)); 510 512 _GPSweeks += _gps_utc; 511 if (_GPSweeks > 86400.0) {513 if (_GPSweeks >= secPerWeek) { 512 514 _GPSweek += 1; 513 _GPSweeks -= 86400.0;515 _GPSweeks -= secPerWeek; 514 516 } 515 517 }
Note:
See TracChangeset
for help on using the changeset viewer.