mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-16 10:16:16 +01:00
add SKIP_GPU=true (#1203)
This commit is contained in:
@@ -358,6 +358,9 @@ func (gm *GPUManager) startCollector(command string) {
|
||||
|
||||
// NewGPUManager creates and initializes a new GPUManager
|
||||
func NewGPUManager() (*GPUManager, error) {
|
||||
if skipGPU, _ := GetEnv("SKIP_GPU"); skipGPU == "true" {
|
||||
return nil, nil
|
||||
}
|
||||
var gm GPUManager
|
||||
if err := gm.detectGPUs(); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user