From 3693a563767a166b17053b7d908f4705c5b80be2 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Fri, 11 Feb 2011 16:03:26 -0800 Subject: [PATCH] ofproto: Display idle time in bridge/dump-flows. --- ofproto/ofproto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 31c8b621..90f97104 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -3664,6 +3664,7 @@ flow_stats_ds(struct ofproto *ofproto, struct rule *rule, struct ds *results) ds_put_format(results, "duration=%llds, ", (time_msec() - rule->created) / 1000); + ds_put_format(results, "idle=%.3fs, ", (time_msec() - rule->used) / 1000.0); ds_put_format(results, "priority=%u, ", rule->cr.priority); ds_put_format(results, "n_packets=%"PRIu64", ", packet_count); ds_put_format(results, "n_bytes=%"PRIu64", ", byte_count); -- 2.30.2