mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-25 09:28:55 +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;
|
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
|
// Return the current number of tokens available
|
||||||
double get_tokens();
|
double get_tokens();
|
||||||
|
|
||||||
|
// Return the last time someone tried to claim a token.
|
||||||
|
uint64_t get_last_seen();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user