mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 22:35:14 +02:00
impossible for percentageOfMaxElapsed to be zero
This commit is contained in:
parent
5918c492cc
commit
b51d3e88d3
1 changed files with 1 additions and 6 deletions
|
@ -410,12 +410,7 @@ int main(int argc, const char* argv[]) {
|
||||||
float percentageOfMaxElapsed = ((float) (usecTimestamp(&endSendTime) - usecTimestamp(&beginSendTime))
|
float percentageOfMaxElapsed = ((float) (usecTimestamp(&endSendTime) - usecTimestamp(&beginSendTime))
|
||||||
/ BUFFER_SEND_INTERVAL_USECS) * 100.0f;
|
/ BUFFER_SEND_INTERVAL_USECS) * 100.0f;
|
||||||
|
|
||||||
if (percentageOfMaxElapsed > 0) {
|
sumFrameTimePercentages += percentageOfMaxElapsed;
|
||||||
sumFrameTimePercentages += percentageOfMaxElapsed;
|
|
||||||
} else {
|
|
||||||
// a negative value suggests that we've taken 100% of the allowable time
|
|
||||||
sumFrameTimePercentages += 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
numStatCollections++;
|
numStatCollections++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue