mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Conn: Minor GetVal() cleanup
This commit is contained in:
parent
3e89e6b328
commit
3f6ee6b007
1 changed files with 2 additions and 3 deletions
|
@ -170,6 +170,7 @@ bool Connection::IsReuse(double t, const u_char* pkt) { return adapter && adapte
|
|||
const RecordValPtr& Connection::GetVal() {
|
||||
if ( ! conn_val ) {
|
||||
conn_val = make_intrusive<RecordVal>(id::connection);
|
||||
conn_val->SetOrigin(this);
|
||||
|
||||
auto id_val = make_intrusive<RecordVal>(id::conn_id);
|
||||
|
||||
|
@ -237,7 +238,7 @@ const RecordValPtr& Connection::GetVal() {
|
|||
if ( adapter )
|
||||
adapter->UpdateConnVal(conn_val.get());
|
||||
|
||||
conn_val->AssignTime(3, start_time); // ###
|
||||
conn_val->AssignTime(3, start_time);
|
||||
conn_val->AssignInterval(4, last_time - start_time);
|
||||
|
||||
if ( ! history.empty() ) {
|
||||
|
@ -246,8 +247,6 @@ const RecordValPtr& Connection::GetVal() {
|
|||
conn_val->Assign(6, history);
|
||||
}
|
||||
|
||||
conn_val->SetOrigin(this);
|
||||
|
||||
return conn_val;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue