summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83bd300)
raw | patch | inline | side by side (parent: 83bd300)
author | Wilfried Goesgens <dothebart@citadel.org> | |
Sat, 21 Jun 2014 19:14:28 +0000 (21:14 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 6 Mar 2015 09:23:22 +0000 (10:23 +0100) |
src/utils_latency.c | patch | blob | history |
diff --git a/src/utils_latency.c b/src/utils_latency.c
index 96ce8e31e64c4289a7f2c0fd8ce11e8765fb3fed..470fbb8dac01fcd069b5668d288b7cca5a75f771 100644 (file)
--- a/src/utils_latency.c
+++ b/src/utils_latency.c
{
double average;
- if (lc == NULL)
+ if ((lc == NULL) || (lc->num == 0))
return (0);
average = CDTIME_T_TO_DOUBLE (lc->sum) / ((double) lc->num);