X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto-dpif-upcall.c;h=ff979ba1603626536a34e8d79cd1b549381e88c6;hb=08d74a962e302b752f53a9c367053a39068104ed;hp=24919db3cd11ce05fd4887c65d8b1d779296af38;hpb=06f14c92f666e03708ffa8731223611943bc28bd;p=sliver-openvswitch.git diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 24919db3c..ff979ba16 100644 --- a/ofproto/ofproto-dpif-upcall.c +++ b/ofproto/ofproto-dpif-upcall.c @@ -615,7 +615,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; if (duration > 2000) { flow_limit /= duration / 1000;