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
|
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
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue