Changeset 6257 in ntrip for trunk/BNC


Ignore:
Timestamp:
Oct 24, 2014, 3:21:22 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r6256 r6257  
    317317      mean += point->_value;
    318318    }
    319     mean /= dataSNR1->size();
     319    if (dataSNR1->size() > 0) {
     320      mean /= dataSNR1->size();
     321    }
    320322    double max = (mean > 9.0) ? 54.0 : 9.0;
    321323    QByteArray str = (mean > 9.0) ? "dbHz" : "";
     
    836838      mean += point->_value;
    837839    }
    838     mean /= data->size();
     840    if (data->size() > 0) {
     841      mean /= data->size();
     842    }
    839843    *_log << text << mean << endl;
    840844  }
Note: See TracChangeset for help on using the changeset viewer.