Fix: go lint errors

This commit is contained in:
Alex P 2025-08-22 23:23:07 +00:00
parent 0ed84257f6
commit 0e1c896aa2
3 changed files with 19 additions and 19 deletions

View File

@ -229,14 +229,14 @@ var (
lastMetricsUpdate time.Time lastMetricsUpdate time.Time
// Counter value tracking (since prometheus counters don't have Get() method) // Counter value tracking (since prometheus counters don't have Get() method)
audioFramesReceivedValue int64 audioFramesReceivedValue int64
audioFramesDroppedValue int64 audioFramesDroppedValue int64
audioBytesProcessedValue int64 audioBytesProcessedValue int64
audioConnectionDropsValue int64 audioConnectionDropsValue int64
micFramesSentValue int64 micFramesSentValue int64
micFramesDroppedValue int64 micFramesDroppedValue int64
micBytesProcessedValue int64 micBytesProcessedValue int64
micConnectionDropsValue int64 micConnectionDropsValue int64
) )
// UpdateAudioMetrics updates Prometheus metrics with current audio data // UpdateAudioMetrics updates Prometheus metrics with current audio data

View File

@ -26,12 +26,12 @@ type ProcessMetrics struct {
// ProcessMonitor monitors CPU and memory usage of processes // ProcessMonitor monitors CPU and memory usage of processes
type ProcessMonitor struct { type ProcessMonitor struct {
logger zerolog.Logger logger zerolog.Logger
mutex sync.RWMutex mutex sync.RWMutex
monitoredPIDs map[int]*processState monitoredPIDs map[int]*processState
running bool running bool
stopChan chan struct{} stopChan chan struct{}
metricsChan chan ProcessMetrics metricsChan chan ProcessMetrics
updateInterval time.Duration updateInterval time.Duration
} }