projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
upcall: Avoid divide-by-zero calculating flow limit
[cascardo/ovs.git]
/
ofproto
/
ofproto-dpif-upcall.c
diff --git
a/ofproto/ofproto-dpif-upcall.c
b/ofproto/ofproto-dpif-upcall.c
index
aa39366
..
01793c7
100644
(file)
--- a/
ofproto/ofproto-dpif-upcall.c
+++ b/
ofproto/ofproto-dpif-upcall.c
@@
-596,7
+596,7
@@
udpif_flow_dumper(void *arg)
ovs_mutex_unlock(&revalidator->mutex);
}
- duration =
time_msec() - start_time
;
+ duration =
MAX(time_msec() - start_time, 1)
;
udpif->dump_duration = duration;
atomic_read(&udpif->flow_limit, &flow_limit);
if (duration > 2000) {