mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
fixed bug where interval length was 1 recint too short
This commit is contained in:
@@ -179,6 +179,8 @@ RideItem::htmlSummary()
|
||||
while (i.hasNext()) {
|
||||
RawFilePoint *point = i.next();
|
||||
|
||||
double secs_delta = raw->rec_int_ms / 1000.0;
|
||||
|
||||
if (point->interval != last_interval) {
|
||||
|
||||
if (last_interval != UINT_MAX) {
|
||||
@@ -192,7 +194,6 @@ RideItem::htmlSummary()
|
||||
mile_start = point->miles;
|
||||
}
|
||||
|
||||
double secs_delta = raw->rec_int_ms / 1000.0;
|
||||
if ((point->mph > 0.0) || (point->cad > 0.0)) {
|
||||
secs_moving_or_pedaling += secs_delta;
|
||||
}
|
||||
@@ -223,7 +224,7 @@ RideItem::htmlSummary()
|
||||
}
|
||||
|
||||
mile_end = point->miles;
|
||||
time_end = point->secs;
|
||||
time_end = point->secs + secs_delta;
|
||||
}
|
||||
|
||||
summarize(intervals, last_interval, time_start,
|
||||
|
||||
Reference in New Issue
Block a user