diff --git a/assignment-client/src/audio/AudioMixerSlavePool.cpp b/assignment-client/src/audio/AudioMixerSlavePool.cpp index 16cfa8217b..5f6936cb2d 100644 --- a/assignment-client/src/audio/AudioMixerSlavePool.cpp +++ b/assignment-client/src/audio/AudioMixerSlavePool.cpp @@ -114,7 +114,7 @@ void AudioMixerSlavePool::each(std::function funct } #ifdef DEBUG_EVENT_QUEUE -void AudioMixerSlavePool::queueStats(QJsonObject & stats) { +void AudioMixerSlavePool::queueStats(QJsonObject& stats) { unsigned i = 0; for (auto& slave : _slaves) { int queueSize = ::hifi::qt::getEventQueueSize(slave.get()); diff --git a/assignment-client/src/audio/AudioMixerSlavePool.h b/assignment-client/src/audio/AudioMixerSlavePool.h index efb9c920d9..3807db0541 100644 --- a/assignment-client/src/audio/AudioMixerSlavePool.h +++ b/assignment-client/src/audio/AudioMixerSlavePool.h @@ -73,7 +73,7 @@ public: void each(std::function functor); #ifdef DEBUG_EVENT_QUEUE - void queueStats(QJsonObject & stats); + void queueStats(QJsonObject& stats); #endif void setNumThreads(int numThreads); diff --git a/assignment-client/src/avatars/AvatarMixerSlavePool.cpp b/assignment-client/src/avatars/AvatarMixerSlavePool.cpp index e92b09bc07..027e68e88b 100644 --- a/assignment-client/src/avatars/AvatarMixerSlavePool.cpp +++ b/assignment-client/src/avatars/AvatarMixerSlavePool.cpp @@ -118,7 +118,7 @@ void AvatarMixerSlavePool::each(std::function fun } #ifdef DEBUG_EVENT_QUEUE -void AvatarMixerSlavePool::queueStats(QJsonObject & stats) { +void AvatarMixerSlavePool::queueStats(QJsonObject& stats) { unsigned i = 0; for (auto& slave : _slaves) { int queueSize = ::hifi::qt::getEventQueueSize(slave.get()); diff --git a/assignment-client/src/avatars/AvatarMixerSlavePool.h b/assignment-client/src/avatars/AvatarMixerSlavePool.h index 9a8105eac1..c8f4c252b1 100644 --- a/assignment-client/src/avatars/AvatarMixerSlavePool.h +++ b/assignment-client/src/avatars/AvatarMixerSlavePool.h @@ -75,7 +75,7 @@ public: void each(std::function functor); #ifdef DEBUG_EVENT_QUEUE - void AvatarMixerSlavePool::queueStats(QJsonObject & stats); + void AvatarMixerSlavePool::queueStats(QJsonObject& stats); #endif void setNumThreads(int numThreads); diff --git a/interface/resources/qml/Stats.qml b/interface/resources/qml/Stats.qml index 1180a952c3..5af3ba9168 100644 --- a/interface/resources/qml/Stats.qml +++ b/interface/resources/qml/Stats.qml @@ -149,12 +149,13 @@ Item { } StatText { visible: { root.eventQueueDebuggingOn && root.expanded } - text: { if (root.eventQueueDebuggingOn) + text: { if (root.eventQueueDebuggingOn) { return "Event Queue Depth\n " + "Main:\t" + root.mainThreadQueueDepth + "\n" + "NodeList:\t" + root.nodeListThreadQueueDepth; - else + } else { return ""; + } } } }