mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 01:04:06 +02:00
removed debug code
This commit is contained in:
parent
8176aa1292
commit
77c377711a
2 changed files with 2 additions and 8 deletions
|
@ -38,8 +38,6 @@ void InterframeTimeGapHistory::frameReceived() {
|
|||
if (_lastFrameReceivedTime != 0) {
|
||||
quint64 gap = now - _lastFrameReceivedTime;
|
||||
|
||||
printf("new gap: %llu\n", gap);
|
||||
|
||||
// update the current interval max
|
||||
if (gap > _currentIntervalMaxGap) {
|
||||
_currentIntervalMaxGap = gap;
|
||||
|
@ -49,8 +47,6 @@ printf("new gap: %llu\n", gap);
|
|||
// if the current interval of samples is now full, record it in our interval maxes
|
||||
if (_numSamplesInCurrentInterval == TIME_GAP_NUM_SAMPLES_IN_INTERVAL) {
|
||||
|
||||
printf("\t interval full: max interval gap: %llu\n", _currentIntervalMaxGap);
|
||||
|
||||
// find location to insert this interval's max (increment index cyclically)
|
||||
_newestIntervalMaxGapAt = _newestIntervalMaxGapAt == TIME_GAP_NUM_INTERVALS_IN_WINDOW - 1 ? 0 : _newestIntervalMaxGapAt + 1;
|
||||
|
||||
|
@ -66,8 +62,6 @@ printf("\t interval full: max interval gap: %llu\n", _currentIntervalMaxGap);
|
|||
}
|
||||
_newWindowMaxGapAvailable = true;
|
||||
|
||||
printf("\t\t new window max gap: %llu\n", _windowMaxGap);
|
||||
|
||||
// reset the current interval
|
||||
_numSamplesInCurrentInterval = 0;
|
||||
_currentIntervalMaxGap = 0;
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
#include "NodeData.h"
|
||||
|
||||
// this means that every 500 samples, the max for the past 10*500 samples will be calculated
|
||||
const int TIME_GAP_NUM_SAMPLES_IN_INTERVAL = 6;
|
||||
const int TIME_GAP_NUM_INTERVALS_IN_WINDOW = 4;
|
||||
const int TIME_GAP_NUM_SAMPLES_IN_INTERVAL = 500;
|
||||
const int TIME_GAP_NUM_INTERVALS_IN_WINDOW = 10;
|
||||
|
||||
class InterframeTimeGapHistory {
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue