From 0b13821fe00d918e24c71419355a10b65081a71a Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Thu, 3 Mar 2011 15:57:10 -0800 Subject: [PATCH] ofproto: Update facet stats when used time increases. --- ofproto/ofproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5