From: Ethan Jackson Date: Thu, 3 Mar 2011 23:57:10 +0000 (-0800) Subject: ofproto: Update facet stats when used time increases. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b13821fe00d918e24c71419355a10b65081a71a;p=openvswitch ofproto: Update facet stats when used time increases. --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 2efb03af..590b792a 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;