mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00

A large number of functions had return values and/or arguments changed to use ``bool`` types instead of ``int``.
17 lines
431 B
C++
17 lines
431 B
C++
// See the file "COPYING" in the main distribution directory for copyright.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <unordered_map>
|
|
|
|
struct WeirdState {
|
|
WeirdState() = default;
|
|
uint64_t count = 0;
|
|
double sampling_start_time = 0;
|
|
};
|
|
|
|
using WeirdStateMap = std::unordered_map<std::string, WeirdState>;
|
|
|
|
bool PermitWeird(WeirdStateMap& wsm, const char* name, uint64_t threshold,
|
|
uint64_t rate, double duration);
|