Skip to content

Commit

Permalink
Merge pull request #6 from Nimbus318/bugfix/correct-count-field
Browse files Browse the repository at this point in the history
fix(server): correct Count field in registerHAMi
  • Loading branch information
archlitchi authored Nov 15, 2024
2 parents b5273a5 + 7bf2c7e commit f52a071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (ps *PluginServer) registerHAMi() error {
apiDevices = append(apiDevices, &api.DeviceInfo{
Index: i,
ID: dev.UUID,
Count: 1,
Count: int32(ps.mgr.VDeviceCount()),
Devmem: int32(dev.Memory),
Devcore: dev.AICore,
Type: ps.mgr.CommonWord(),
Expand Down

0 comments on commit f52a071

Please sign in to comment.