From: Ethan Jackson Date: Sat, 12 Feb 2011 00:03:26 +0000 (-0800) Subject: ofproto: Display idle time in bridge/dump-flows. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3693a563767a166b17053b7d908f4705c5b80be2;p=openvswitch ofproto: Display idle time in bridge/dump-flows. --- 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);