Skip to content

Commit

Permalink
feature show pcie bus ids fro GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
S74nk0 committed Jul 5, 2019
1 parent f3a35d0 commit c8896f4
Show file tree
Hide file tree
Showing 6 changed files with 187 additions and 143 deletions.
2 changes: 2 additions & 0 deletions src/NiceHashMinerLegacy/Configs/Data/GeneralConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ public bool RunAtStartup
public bool DisableDeviceStatusMonitoring { get; set; } = false;
public bool DisableDevicePowerModeSettings { get; set; } = false;

public bool ShowGPUPCIeBusIDs { get; set; } = false;

// methods
public void SetDefaults()
{
Expand Down
4 changes: 4 additions & 0 deletions src/NiceHashMinerLegacy/Devices/ComputeDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ public void SetEnabled(bool isEnabled)
// combines long and short name
public string GetFullName()
{
if (ConfigManager.GeneralConfig.ShowGPUPCIeBusIDs && BaseDevice is IGpuDevice gpu)
{
return $"{NameCount} {Name} (pcie {gpu.PCIeBusID})";
}
return $"{NameCount} {Name}";
}

Expand Down
Loading

0 comments on commit c8896f4

Please sign in to comment.