Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cns/NetworkContainerContract.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,6 @@ type NodeInfoResponse struct {

// NodeRegisterRequest - Struct to hold the node register request.
type NodeRegisterRequest struct {
NumCPU int
NumCores int
NmAgentSupportedApis []string
}
2 changes: 1 addition & 1 deletion cns/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func registerNode(httpc *http.Client, httpRestService cns.HTTPService, dncEP, in
nodeRegisterRequest cns.NodeRegisterRequest
)

nodeRegisterRequest.NumCPU = numCPU
nodeRegisterRequest.NumCores = numCPU
supportedApis, retErr := nmagent.GetNmAgentSupportedApis(httpc, "")

if retErr != nil {
Expand Down