Skip to content

Commit

Permalink
ordering vpenso#82
Browse files Browse the repository at this point in the history
  • Loading branch information
Pim Witlox committed Sep 9, 2022
1 parent 4617f54 commit f1c2ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ func ParseNodeMetrics(input []byte) map[string]*NodeMetrics {
}

nodeName := node[0]

nodes[nodeName] = &NodeMetrics{0, 0, 0, 0, 0, 0, ""}

if len(node) >= 5 {
nodeStatus := node[4]
Expand All @@ -67,8 +69,6 @@ func ParseNodeMetrics(input []byte) map[string]*NodeMetrics {
nodes[nodeName].nodeStatus = nodeStatus
}

nodes[nodeName] = &NodeMetrics{0, 0, 0, 0, 0, 0, ""}

if len(node) >= 3 {
memAlloc, _ := strconv.ParseUint(node[1], 10, 64)
memTotal, _ := strconv.ParseUint(node[2], 10, 64)
Expand Down

0 comments on commit f1c2ecb

Please sign in to comment.