mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 11:10:44 +00:00
PB % Calculation fix
This commit is contained in:
parent
9f8d663ad9
commit
69e16f11a6
@ -315,8 +315,8 @@ EventDataType Day::sph(ChannelID code)
|
|||||||
EventDataType sum=0;
|
EventDataType sum=0;
|
||||||
EventDataType h=0;
|
EventDataType h=0;
|
||||||
for (int i=0;i<sessions.size();i++) {
|
for (int i=0;i<sessions.size();i++) {
|
||||||
if (!sessions[i]->m_sph.contains(code)) continue;
|
if (!sessions[i]->m_sum.contains(code)) continue;
|
||||||
sum+=sessions[i]->sph(code)*sessions[i]->hours();
|
sum+=sessions[i]->sum(code)/3600.0;//*sessions[i]->hours();
|
||||||
//h+=sessions[i]->hours();
|
//h+=sessions[i]->hours();
|
||||||
}
|
}
|
||||||
h=hours();
|
h=hours();
|
||||||
|
Loading…
Reference in New Issue
Block a user