mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-19 14:03:20 +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)
|
||||
gettimeofday(&endSendTime, NULL);
|
||||
|
||||
float percentageOfMaxElapsed = (usecTimestamp(&endSendTime) - usecTimestamp(&beginSendTime))
|
||||
/ BUFFER_SEND_INTERVAL_USECS * 100.0f;
|
||||
float percentageOfMaxElapsed = ((float) (usecTimestamp(&endSendTime) - usecTimestamp(&beginSendTime))
|
||||
/ BUFFER_SEND_INTERVAL_USECS) * 100.0f;
|
||||
|
||||
if (percentageOfMaxElapsed > 0) {
|
||||
sumFrameTimePercentages += percentageOfMaxElapsed;
|
||||
|
|
Loading…
Reference in a new issue