mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 09:23:17 +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))
|
||||
/ BUFFER_SEND_INTERVAL_USECS) * 100.0f;
|
||||
|
||||
if (percentageOfMaxElapsed > 0) {
|
||||
sumFrameTimePercentages += percentageOfMaxElapsed;
|
||||
} else {
|
||||
// a negative value suggests that we've taken 100% of the allowable time
|
||||
sumFrameTimePercentages += 100;
|
||||
}
|
||||
sumFrameTimePercentages += percentageOfMaxElapsed;
|
||||
|
||||
numStatCollections++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue