controller will pass resource <name, value> pair than <idx, value> pair
This commit is contained in:
parent
9f6741c2c4
commit
d47b3375e7
16 changed files with 183 additions and 86 deletions
|
|
@ -126,6 +126,7 @@ type rawWorkerData struct {
|
|||
maxSwap int
|
||||
maxTmp int
|
||||
nDisks int
|
||||
resvals []models.ResourceDistributionInfo
|
||||
}
|
||||
|
||||
// rawQueueData mirrors the C xce_queue_t fields used by the Go model.
|
||||
|
|
@ -204,8 +205,9 @@ func rawJobToModel(r rawJobData) *models.JobInfo {
|
|||
// rawWorkerToModel maps a rawWorkerData to a models.HostInfo.
|
||||
func rawWorkerToModel(r rawWorkerData) *models.HostInfo {
|
||||
info := &models.HostInfo{
|
||||
HostName: r.name,
|
||||
HostStatus: r.status,
|
||||
HostName: r.name,
|
||||
HostStatus: r.status,
|
||||
ResourceValues: r.resvals,
|
||||
}
|
||||
if r.hasAttrs {
|
||||
info.HostType = r.hostType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue