X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvlog.h;h=1a11f598e00935772b2e1960ca422420b7d94151;hb=e2eed6a7581193da43210a26ad182fb2a697eaf5;hp=3f40c297dbbe736197a9841e1316777d9a7ff841;hpb=f4070db7e5ae7727876d6cc318fba10033dc2c85;p=openvswitch diff --git a/lib/vlog.h b/lib/vlog.h index 3f40c297..1a11f598 100644 --- a/lib/vlog.h +++ b/lib/vlog.h @@ -112,6 +112,7 @@ struct vlog_rate_limit { unsigned int tokens; /* Current number of tokens. */ time_t last_fill; /* Last time tokens added. */ time_t first_dropped; /* Time first message was dropped. */ + time_t last_dropped; /* Time of most recent message drop. */ unsigned int n_dropped; /* Number of messages dropped. */ }; @@ -130,6 +131,7 @@ struct vlog_rate_limit { 0, /* tokens */ \ 0, /* last_fill */ \ 0, /* first_dropped */ \ + 0, /* last_dropped */ \ 0, /* n_dropped */ \ }