collectd/collectd — pull request #655 by dothebart (2014-06-21 19:17:29+00:00)
Title: Statsd: avoid doing a division by zero when calculating the average

if there was no value in the interval, lc->num == 0, and by that we would return the result of a division by zero
->
gdb> print average
$18 = -nan(0x8000000000000)