@@ -91,7 +91,7 @@ struct RecordExtTCPRTT : public RecordExt {
91
91
return static_cast <int >(sizeof (uint64_t ));
92
92
}
93
93
94
- const uint64_t round_trip_time =
94
+ const uint64_t round_trip_time =
95
95
timeval_to_msec (tcp_synack_timestamp) - timeval_to_msec (tcp_syn_timestamp);
96
96
*reinterpret_cast <uint64_t *>(buffer) = round_trip_time;
97
97
return static_cast <int >(sizeof (round_trip_time));
@@ -109,10 +109,10 @@ struct RecordExtTCPRTT : public RecordExt {
109
109
std::ostringstream out;
110
110
111
111
if (has_no_value (tcp_syn_timestamp) || has_no_value (tcp_synack_timestamp)) {
112
- out << " tcprtt = UNKNOWN" ;
112
+ out << " tcprtt = UNKNOWN" ;
113
113
} else {
114
- out << " tcprtt = " <<
115
- timeval_to_msec (tcp_synack_timestamp) - timeval_to_msec (tcp_syn_timestamp);
114
+ out << " tcprtt = " <<
115
+ timeval_to_msec (tcp_synack_timestamp) - timeval_to_msec (tcp_syn_timestamp);
116
116
}
117
117
118
118
return out.str ();
@@ -125,11 +125,11 @@ class TCPRTTPlugin : public ProcessPlugin {
125
125
TCPRTTPlugin (const std::string& params, int pluginID);
126
126
127
127
TCPRTTPlugin (const TCPRTTPlugin&) noexcept ;
128
-
128
+
129
129
~TCPRTTPlugin () override = default ;
130
-
130
+
131
131
void init (const char * params) override ;
132
-
132
+
133
133
OptionsParser* get_parser () const override ;
134
134
135
135
std::string get_name () const override ;
@@ -148,4 +148,4 @@ class TCPRTTPlugin : public ProcessPlugin {
148
148
std::unique_ptr<RecordExtTCPRTT> m_prealloced_extension{get_ext ()};
149
149
};
150
150
151
- }
151
+ }
0 commit comments