mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-25 01:18:53 +00:00
Expose last seen time.
Also expose last seen time for token bucket.
This commit is contained in:
parent
c066be3905
commit
dafc4c2b88
@ -84,3 +84,8 @@ double token_bucket::get_tokens()
|
||||
{
|
||||
return m_tokens;
|
||||
}
|
||||
|
||||
uint64_t token_bucket::get_last_seen()
|
||||
{
|
||||
return m_last_seen;
|
||||
}
|
||||
|
@ -42,6 +42,9 @@ public:
|
||||
// Return the current number of tokens available
|
||||
double get_tokens();
|
||||
|
||||
// Return the last time someone tried to claim a token.
|
||||
uint64_t get_last_seen();
|
||||
|
||||
private:
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user