Typo += instead of plain =

.. has same effect since sample.km is zero until we get to
   this line, but it is misleading to read.
This commit is contained in:
Mark Liversedge
2015-04-10 09:11:07 +01:00
parent f5bfcb112b
commit dbfee3db52

View File

@@ -269,7 +269,7 @@ RideFile *TxtFileReader::openRideFile(QFile &file, QStringList &errors, QList<Ri
// subtract remains of this sample from the distance for
// the entire sample, remembering that dk is meters and
// dt is milliseconds
sample.km += lastK - ((float(dt)/(float(odt)) * dk) / 1000.0f);
sample.km = lastK - ((float(dt)/(float(odt)) * dk) / 1000.0f);
// averaging sample data
sample.watts += float(need) * value.watts;