From: Ethan Jackson Date: Thu, 3 Mar 2011 23:57:10 +0000 (-0800) Subject: ofproto: Update facet stats when used time increases. X-Git-Tag: v1.1.0~190 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0b13821fe00d918e24c71419355a10b65081a71a;p=sliver-openvswitch.git ofproto: Update facet stats when used time increases. --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 2efb03afd..590b792a1 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -3896,7 +3896,7 @@ static void facet_update_stats(struct ofproto *ofproto, struct facet *facet, const struct dpif_flow_stats *stats) { - if (stats->n_packets) { + if (stats->n_packets || stats->used > facet->used) { facet_update_time(ofproto, facet, stats->used); facet->packet_count += stats->n_packets; facet->byte_count += stats->n_bytes;