GetDurationFromCost():
Use pop_accumulate_durations, to decide if durations have to be summed up.
This commit is contained in:
parent
fc78eff0a4
commit
18f2895250
@ -318,7 +318,12 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
|
||||
//found = true;
|
||||
//qCritical() << "(" << __func__ << ":" << __LINE__ << ") duration_previous" << duration_previous;
|
||||
//qCritical() << "(" << __func__ << ":" << __LINE__ << ") duration in minutes" << durationInMinutes;
|
||||
QDateTime d(inputDate.addSecs(duration_previous * 60));
|
||||
QDateTime d;
|
||||
if (pop_accumulate_durations) {
|
||||
d = inputDate.addSecs(durationInMinutes * 60);
|
||||
} else {
|
||||
d = inputDate.addSecs(duration_previous * 60);
|
||||
}
|
||||
|
||||
qCritical() << DBG_HEADER << " provided price (cost):" << cost;
|
||||
qCritical() << DBG_HEADER << " computed time for price (minutes):" << duration_previous;
|
||||
|
Loading…
Reference in New Issue
Block a user