mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Switch zeek:🆔:lookup to zeek:🆔:find
For parity with Scope since it now uses Find instead of Lookup
This commit is contained in:
parent
7843416e51
commit
4debad8caf
59 changed files with 339 additions and 339 deletions
|
@ -63,13 +63,13 @@ Reporter::~Reporter()
|
|||
|
||||
void Reporter::InitOptions()
|
||||
{
|
||||
info_to_stderr = zeek::id::lookup_val("Reporter::info_to_stderr")->AsBool();
|
||||
warnings_to_stderr = zeek::id::lookup_val("Reporter::warnings_to_stderr")->AsBool();
|
||||
errors_to_stderr = zeek::id::lookup_val("Reporter::errors_to_stderr")->AsBool();
|
||||
weird_sampling_rate = zeek::id::lookup_val("Weird::sampling_rate")->AsCount();
|
||||
weird_sampling_threshold = zeek::id::lookup_val("Weird::sampling_threshold")->AsCount();
|
||||
weird_sampling_duration = zeek::id::lookup_val("Weird::sampling_duration")->AsInterval();
|
||||
auto wl_val = zeek::id::lookup_val("Weird::sampling_whitelist")->AsTableVal();
|
||||
info_to_stderr = zeek::id::find_val("Reporter::info_to_stderr")->AsBool();
|
||||
warnings_to_stderr = zeek::id::find_val("Reporter::warnings_to_stderr")->AsBool();
|
||||
errors_to_stderr = zeek::id::find_val("Reporter::errors_to_stderr")->AsBool();
|
||||
weird_sampling_rate = zeek::id::find_val("Weird::sampling_rate")->AsCount();
|
||||
weird_sampling_threshold = zeek::id::find_val("Weird::sampling_threshold")->AsCount();
|
||||
weird_sampling_duration = zeek::id::find_val("Weird::sampling_duration")->AsInterval();
|
||||
auto wl_val = zeek::id::find_val("Weird::sampling_whitelist")->AsTableVal();
|
||||
auto wl_table = wl_val->AsTable();
|
||||
|
||||
HashKey* k;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue