summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-03-03 15:57:10 -0800
committerEthan Jackson <ethan@nicira.com>2011-03-03 16:21:24 -0800
commit0b13821fe00d918e24c71419355a10b65081a71a (patch)
treeea55ca1e6bf81c9c4f38f8c82fdc1b441a24856f /ofproto
parentf45ee2cd9a8cd2a4f2a60fd36da9f95775e2efa6 (diff)
downloadopenvswitch-0b13821fe00d918e24c71419355a10b65081a71a.tar.gz
ofproto: Update facet stats when used time increases.
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto.c2
1 files changed, 1 insertions, 1 deletions
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;