fix a divide by zero for audio-mixer stat sending

This commit is contained in:
Stephen Birarda 2013-06-13 17:07:25 -06:00
parent a141e3dc5d
commit fab53113e4

View file

@ -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";