mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user