diff --git a/LLama/Native/Load/SystemInfo.cs b/LLama/Native/Load/SystemInfo.cs index f736ddf40..f2e6827ec 100644 --- a/LLama/Native/Load/SystemInfo.cs +++ b/LLama/Native/Load/SystemInfo.cs @@ -84,13 +84,11 @@ public static SystemInfo Get() CreateNoWindow = true } }; - var (exitCode, output, error, ok) = process.SafeRun(TimeSpan.FromSeconds(1)); + var (exitCode, output, error, ok) = process.SafeRun(TimeSpan.FromSeconds(12)); - if (!ok) - return null; - - // Return the output - return output; + // If ok return the output else return null + return ok ? output : + null; } catch {