func (ct *ConsoleThrottler) markActivation(increment bool) uint64 {
	if !increment {
		if atomic.LoadUint64(&ct.activations) == 0 {
			return 0
		}
		return atomic.AddUint64(&ct.activations, ^uint64(0))
	}
	return atomic.AddUint64(&ct.activations, 1)
}
Triggers an activation for a server. You can also decrement the number of activations
by passing a negative number.
package server
import (
	"context"
	"fmt"
	"sync"
	"sync/atomic"
	"time"
	"emperror.dev/errors"
	"github.com/mitchellh/colorstring"
	"github.com/pterodactyl/wings/config"
	"github.com/pterodactyl/wings/system"
)
var appName string
var appNameSync sync.Once
var ErrTooMuchConsoleData = errors.New("console is outputting too much data")
type ConsoleThrottler struct {
	mu sync.Mutex
	config.ConsoleThrottles
	activations uint64
	count uint64
	isThrottled *system.AtomicBool
	timerCancel *context.CancelFunc
}
func (ct *ConsoleThrottler) Reset() {
	atomic.StoreUint64(&ct.count, 0)
	atomic.StoreUint64(&ct.activations, 0)
	ct.isThrottled.Store(false)
}