Oximetry Bug fix (in W-avg calculation)

This commit is contained in:
Mark Watkins 2011-10-06 00:48:59 +10:00
parent b41f22be50
commit d8fda1aba1
2 changed files with 3 additions and 2 deletions

View File

@ -163,9 +163,9 @@ void SummaryChart::paint(gGraph & w,int left, int top, int width, int height)
EventDataType maxy=m_maxy;
EventDataType miny=m_miny;
if (m_codes[0]=="HumidSet") {
/*if (m_codes[0]=="HumidSet") {
int i=1;
}
}*/
w.roundY(miny,maxy);

View File

@ -729,6 +729,7 @@ EventDataType Session::wavg(ChannelID id)
EventDataType gain=evec[0]->gain();
for (int i=0;i<evec.size();i++) {
if (!evec[i]->count()) continue;
lastval=evec[i]->raw(0);
lasttime=evec[i]->time(0);
for (int j=1;j<evec[i]->count();j++) {