PB % Calculation fix

This commit is contained in:
Mark Watkins 2011-09-12 15:14:14 +10:00
parent 9f8d663ad9
commit 69e16f11a6

View File

@ -315,8 +315,8 @@ EventDataType Day::sph(ChannelID code)
EventDataType sum=0;
EventDataType h=0;
for (int i=0;i<sessions.size();i++) {
if (!sessions[i]->m_sph.contains(code)) continue;
sum+=sessions[i]->sph(code)*sessions[i]->hours();
if (!sessions[i]->m_sum.contains(code)) continue;
sum+=sessions[i]->sum(code)/3600.0;//*sessions[i]->hours();
//h+=sessions[i]->hours();
}
h=hours();