Skip to content

Commit 4ad590b

Browse files
author
Damir Zainullin
committed
++
1 parent 7e3f1f5 commit 4ad590b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/plugins/process/tcpRtt/src/tcpRtt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ int TCPRTTPlugin::post_create(Flow& rec, const Packet& pkt)
7171
if (pkt.ip_proto == IPPROTO_TCP) {
7272
rec.add_extension(m_prealloced_extension.release());
7373
}
74-
74+
7575
update_tcp_rtt_record(rec, pkt);
7676
return 0;
7777
}

src/plugins/process/tcpRtt/src/tcpRtt.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct RecordExtTCPRTT : public RecordExt {
9191
return static_cast<int>(sizeof(uint64_t));
9292
}
9393

94-
const uint64_t round_trip_time =
94+
const uint64_t round_trip_time =
9595
timeval_to_msec(tcp_synack_timestamp) - timeval_to_msec(tcp_syn_timestamp);
9696
*reinterpret_cast<uint64_t*>(buffer) = round_trip_time;
9797
return static_cast<int>(sizeof(round_trip_time));
@@ -109,10 +109,10 @@ struct RecordExtTCPRTT : public RecordExt {
109109
std::ostringstream out;
110110

111111
if (has_no_value(tcp_syn_timestamp) || has_no_value(tcp_synack_timestamp)) {
112-
out << "tcprtt = UNKNOWN";
112+
out << "tcprtt = UNKNOWN";
113113
} 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);
116116
}
117117

118118
return out.str();
@@ -125,11 +125,11 @@ class TCPRTTPlugin : public ProcessPlugin {
125125
TCPRTTPlugin(const std::string& params, int pluginID);
126126

127127
TCPRTTPlugin(const TCPRTTPlugin&) noexcept;
128-
128+
129129
~TCPRTTPlugin() override = default;
130-
130+
131131
void init(const char* params) override;
132-
132+
133133
OptionsParser* get_parser() const override;
134134

135135
std::string get_name() const override;
@@ -148,4 +148,4 @@ class TCPRTTPlugin : public ProcessPlugin {
148148
std::unique_ptr<RecordExtTCPRTT> m_prealloced_extension{get_ext()};
149149
};
150150

151-
}
151+
}

0 commit comments

Comments
 (0)