output:"Shell spawned in a container other than entrypoint (user=%user.name %container.info shell=%proc.name parent=%proc.pname cmdline=%proc.cmdline)"
// Returns true if a token can be claimed. Also updates
// internal metrics.
// Try to claim tokens tokens from the token bucket, using a
// timestamp of now. Returns true if the tokens could be
// claimed. Also updates internal metrics.
//
boolclaim(doubletokens,uint64_tnow);
// Simpler version of claim that claims a single token and
// uses the current time for now
boolclaim();
// Return the current number of tokens available
doubleget_tokens();
// Return the last time someone tried to claim a token.
uint64_tget_last_seen();
private:
//
// The number of tokens generated per second.
//
uint64_tm_rate;
doublem_rate;
//
// The maximum number of tokens that can be banked for future
// claim()s.
//
uint64_tm_max_tokens;
doublem_max_tokens;
//
// The current number of tokens
//
uint64_tm_tokens;
doublem_tokens;
//
// The last time claim() was called (or the object was created).
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.