Commit d1e1aa9 1 parent 88033f1 commit d1e1aa9 Copy full SHA for d1e1aa9
File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -103,17 +103,17 @@ where
103
103
let mbufs: Vec < Mbuf > = self . rx_burst ( rxqueue, 32 ) ;
104
104
if mbufs. is_empty ( ) {
105
105
IDLE_CYCLES . inc ( ) ;
106
-
107
- if IDLE_CYCLES . get ( ) & 1023 == 512 {
108
- now = Instant :: now ( ) ;
109
- }
110
-
111
- #[ cfg( feature = "prometheus" ) ]
112
- if IDLE_CYCLES . get ( ) & 1023 == 0 && self . is_prometheus_enabled {
113
- crate :: stats:: update_thread_local_stats ( self . id ) ;
114
- }
115
106
}
107
+
116
108
TOTAL_CYCLES . inc ( ) ;
109
+ if TOTAL_CYCLES . get ( ) & 1023 == 512 {
110
+ now = Instant :: now ( ) ;
111
+ }
112
+ #[ cfg( feature = "prometheus" ) ]
113
+ if TOTAL_CYCLES . get ( ) & 1023 == 0 && self . is_prometheus_enabled {
114
+ crate :: stats:: update_thread_local_stats ( self . id ) ;
115
+ }
116
+
117
117
for mbuf in mbufs. into_iter ( ) {
118
118
// log::debug!("{:#?}", mbuf);
119
119
// log::debug!("Mark: {}", mbuf.mark());
You can’t perform that action at this time.
0 commit comments