diff options
| author | Ethan Jackson <ethan@nicira.com> | 2011-02-11 16:03:26 -0800 |
|---|---|---|
| committer | Ethan Jackson <ethan@nicira.com> | 2011-02-18 11:24:22 -0800 |
| commit | 3693a563767a166b17053b7d908f4705c5b80be2 (patch) | |
| tree | 29373d2eed320efb35b19779b1228a4d1561db72 /ofproto | |
| parent | a5df0e72efd8eaaa7867c88614ffb0f8f59f51a2 (diff) | |
| download | openvswitch-3693a563767a166b17053b7d908f4705c5b80be2.tar.gz | |
ofproto: Display idle time in bridge/dump-flows.
Diffstat (limited to 'ofproto')
| -rw-r--r-- | ofproto/ofproto.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 31c8b6210..90f971040 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); |
