mirror of
https://github.com/datarhei/core.git
synced 2025-10-19 14:24:44 +08:00
Create GPU index in actual driver
This commit is contained in:
@@ -444,8 +444,9 @@ func (n *nvidia) Stats() ([]gpu.Stats, error) {
|
||||
return stats, n.err
|
||||
}
|
||||
|
||||
for _, nv := range n.stats.GPU {
|
||||
for i, nv := range n.stats.GPU {
|
||||
s := gpu.Stats{
|
||||
Index: i,
|
||||
ID: nv.ID,
|
||||
Name: nv.Name,
|
||||
Architecture: nv.Architecture,
|
||||
|
Reference in New Issue
Block a user