mirror of
https://github.com/henrygd/beszel.git
synced 2026-03-22 05:36:15 +01:00
increase smartctl --scan timeout to 10 seconds (#1465)
This commit is contained in:
@@ -171,7 +171,7 @@ func (sm *SmartManager) ScanDevices(force bool) error {
|
||||
configuredDevices = parsedDevices
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
defer cancel()
|
||||
|
||||
cmd := exec.CommandContext(ctx, sm.binPath, "--scan", "-j")
|
||||
|
||||
Reference in New Issue
Block a user