From e29bb9183b230bce810617c2f75a1aa911072ba1 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Tue, 18 Aug 2015 02:08:21 -0700 Subject: [PATCH] minimize diff --- interface/src/Application.cpp | 3 ++- interface/src/Application.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index de77b95e23..c9c3b94e03 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -89,6 +89,7 @@ #include #include #include +#include #include #include #include @@ -2002,6 +2003,7 @@ void Application::checkFPS() { void Application::idle() { PROFILE_RANGE(__FUNCTION__); + static SimpleAverage interIdleDurations; static uint64_t lastIdleStart{ 0 }; static uint64_t lastIdleEnd{ 0 }; @@ -2014,7 +2016,6 @@ void Application::idle() { lastIdleStart = now; - static SimpleAverage interIdleDurations; if (lastIdleEnd != 0) { interIdleDurations.update(now - lastIdleEnd); static uint64_t lastReportTime = now; diff --git a/interface/src/Application.h b/interface/src/Application.h index f49fb38e57..4819bd08a4 100644 --- a/interface/src/Application.h +++ b/interface/src/Application.h @@ -38,7 +38,6 @@ #include #include #include -#include #include #include "AudioClient.h"