mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Excluding planned future but linked activities from expected load (#4851)
Status Quo: When executing a planned activity early, its load is counted twice: Once from the planned activity (future), once from the actual activity (past) This fix excludes such planned activities from calculation (while keeping unlinked ones)
This commit is contained in:
committed by
GitHub
parent
ad84a58920
commit
1675464d47
@@ -291,7 +291,7 @@ void PMCData::refresh()
|
||||
todayActualStress += value;
|
||||
}
|
||||
} else if (start_.addDays(offset).daysTo(QDate::currentDate()) < 0) {
|
||||
if (item->planned) {
|
||||
if (item->planned && ! item->hasLinkedActivity()) {
|
||||
expected_stress_[offset] += value;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user