mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-25 12:49:26 +01:00
Exclude "Microsoft"... GPUs
This commit is contained in:
@@ -280,8 +280,13 @@ namespace Flowframes.Os
|
||||
{
|
||||
if (property.Name == "Description")
|
||||
{
|
||||
gpus.Add(property.Value.ToString());
|
||||
Logger.Log($"[GetGpus] Found GPU: {property.Value}", true);
|
||||
string gpuName = property.Value.ToString();
|
||||
|
||||
if (!gpuName.ToLower().Contains("microsoft")) // To ignore pseudo-GPUs like on vServers, RDP sessions, etc. (e.g. "Microsoft Basic Display Adapter")
|
||||
{
|
||||
gpus.Add(gpuName);
|
||||
Logger.Log($"[GetGpus] Found GPU: {property.Value}", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
//string gpuName = queryObj["Name"].ToString();
|
||||
|
||||
Reference in New Issue
Block a user