mirror of https://github.com/jetkvm/kvm.git
Fix: go lint errors
This commit is contained in:
parent
0ed84257f6
commit
0e1c896aa2
|
@ -229,14 +229,14 @@ var (
|
|||
lastMetricsUpdate time.Time
|
||||
|
||||
// Counter value tracking (since prometheus counters don't have Get() method)
|
||||
audioFramesReceivedValue int64
|
||||
audioFramesDroppedValue int64
|
||||
audioBytesProcessedValue int64
|
||||
audioConnectionDropsValue int64
|
||||
micFramesSentValue int64
|
||||
micFramesDroppedValue int64
|
||||
micBytesProcessedValue int64
|
||||
micConnectionDropsValue int64
|
||||
audioFramesReceivedValue int64
|
||||
audioFramesDroppedValue int64
|
||||
audioBytesProcessedValue int64
|
||||
audioConnectionDropsValue int64
|
||||
micFramesSentValue int64
|
||||
micFramesDroppedValue int64
|
||||
micBytesProcessedValue int64
|
||||
micConnectionDropsValue int64
|
||||
)
|
||||
|
||||
// UpdateAudioMetrics updates Prometheus metrics with current audio data
|
||||
|
|
|
@ -26,12 +26,12 @@ type ProcessMetrics struct {
|
|||
|
||||
// ProcessMonitor monitors CPU and memory usage of processes
|
||||
type ProcessMonitor struct {
|
||||
logger zerolog.Logger
|
||||
mutex sync.RWMutex
|
||||
monitoredPIDs map[int]*processState
|
||||
running bool
|
||||
stopChan chan struct{}
|
||||
metricsChan chan ProcessMetrics
|
||||
logger zerolog.Logger
|
||||
mutex sync.RWMutex
|
||||
monitoredPIDs map[int]*processState
|
||||
running bool
|
||||
stopChan chan struct{}
|
||||
metricsChan chan ProcessMetrics
|
||||
updateInterval time.Duration
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue