Minor: debug output.
duartionUnit as signed int (to see errors in case it becomes negative).
This commit is contained in:
parent
a6007ee89a
commit
48cc6b1302
@ -182,8 +182,8 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
|
|||||||
price = pra_price;
|
price = pra_price;
|
||||||
}
|
}
|
||||||
|
|
||||||
// qCritical() << DBG_HEADER << " PRICE" << price << "COST" << cost;
|
//qCritical() << DBG_HEADER << " PRICE" << price << "COST" << cost;
|
||||||
// qCritical() << DBG_HEADER << " duration id" << durationId;
|
//qCritical() << DBG_HEADER << " duration id" << durationId;
|
||||||
|
|
||||||
auto search = cfg->Duration.find(durationId);
|
auto search = cfg->Duration.find(durationId);
|
||||||
if (search != cfg->Duration.end()) {
|
if (search != cfg->Duration.end()) {
|
||||||
@ -192,7 +192,9 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
|
|||||||
ATBDuration duration = search->second;
|
ATBDuration duration = search->second;
|
||||||
|
|
||||||
if (pop_accumulate_prices) {
|
if (pop_accumulate_prices) {
|
||||||
uint32_t const durationUnit = cfg->Duration.find(durationId)->second.pun_duration;
|
int32_t const durationUnit = cfg->Duration.find(durationId)->second.pun_duration;
|
||||||
|
|
||||||
|
// qCritical() << DBG_HEADER << " duration unit" << durationUnit;
|
||||||
|
|
||||||
new_price += pra_price;
|
new_price += pra_price;
|
||||||
// qCritical() << "(" << __func__ << ":" << __LINE__ << ") old price" << price << ", new_price:" << new_price;
|
// qCritical() << "(" << __func__ << ":" << __LINE__ << ") old price" << price << ", new_price:" << new_price;
|
||||||
@ -2789,7 +2791,7 @@ QList<int> &Calculator::GetTimeSteps(Configuration *cfg, int paymentOptionIndex,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
qCritical() << "(" << __func__ << ":" << __LINE__ << ") NEW timeSteps:" << m_timeSteps;
|
//qCritical() << "(" << __func__ << ":" << __LINE__ << ") NEW timeSteps:" << m_timeSteps;
|
||||||
|
|
||||||
if (DBG_LEVEL >= DBG_DEBUG) {
|
if (DBG_LEVEL >= DBG_DEBUG) {
|
||||||
qCritical() << "(" << __func__ << ":" << __LINE__ << ") NEW timeSteps:" << m_timeSteps;
|
qCritical() << "(" << __func__ << ":" << __LINE__ << ") NEW timeSteps:" << m_timeSteps;
|
||||||
|
Loading…
Reference in New Issue
Block a user