mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 15:29:42 +02:00
wrap things in brackets to correct percentage
This commit is contained in:
parent
51b431aa81
commit
1ebd007f36
1 changed files with 2 additions and 2 deletions
|
@ -381,8 +381,8 @@ int main(int argc, const char* argv[]) {
|
||||||
// calculate the percentage value for time elapsed for this send (of the max allowable time)
|
// calculate the percentage value for time elapsed for this send (of the max allowable time)
|
||||||
gettimeofday(&endSendTime, NULL);
|
gettimeofday(&endSendTime, NULL);
|
||||||
|
|
||||||
float percentageOfMaxElapsed = (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) {
|
if (percentageOfMaxElapsed > 0) {
|
||||||
sumFrameTimePercentages += percentageOfMaxElapsed;
|
sumFrameTimePercentages += percentageOfMaxElapsed;
|
||||||
|
|
Loading…
Reference in a new issue