From fab53113e464cef910aba2a68fe6754a5b22db85 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 13 Jun 2013 17:07:25 -0600 Subject: [PATCH] fix a divide by zero for audio-mixer stat sending --- audio-mixer/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio-mixer/src/main.cpp b/audio-mixer/src/main.cpp index 04a8ae0885..4aaef6ade0 100644 --- a/audio-mixer/src/main.cpp +++ b/audio-mixer/src/main.cpp @@ -120,7 +120,7 @@ int main(int argc, const char* argv[]) { gettimeofday(&lastDomainServerCheckIn, NULL); AgentList::getInstance()->sendDomainServerCheckIn(); - if (Logstash::shouldSendStats()) { + if (Logstash::shouldSendStats() && numStatCollections > 0) { // if we should be sending stats to Logstash send the appropriate average now const char MIXER_LOGSTASH_METRIC_NAME[] = "audio-mixer-frame-time-usage";