summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4016dcd)
raw | patch | inline | side by side (parent: 4016dcd)
author | Wilfried Goesgens <dothebart@citadel.org> | |
Tue, 29 Jul 2014 11:58:23 +0000 (13:58 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 6 Mar 2015 09:23:28 +0000 (10:23 +0100) |
src/utils_latency.c | patch | blob | history |
diff --git a/src/utils_latency.c b/src/utils_latency.c
index 470fbb8dac01fcd069b5668d288b7cca5a75f771..dfdef6115f249f1c9f66a74467192a667e94a325 100644 (file)
--- a/src/utils_latency.c
+++ b/src/utils_latency.c
int sum;
size_t i;
- if ((lc == NULL) || !((percent > 0.0) && (percent < 100.0)))
+ if ((lc == NULL) || (lc->num == 0) || !((percent > 0.0) && (percent < 100.0)))
return (0);
/* Find index i so that at least "percent" events are within i+1 ms. */