Skip to content

Commit 95f0913

Browse files
L-607Rory-Z
authored andcommitted
fix:fix wrong node
Signed-off-by: L-607 <i@1l.fit>
1 parent b6c6bc0 commit 95f0913

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

collector/utils.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ func cutNodeName(nodeName string) string {
1313

1414
if ip, err := netip.ParseAddr(slice[1]); err == nil {
1515
return ip.String()
16-
} else if pos := strings.IndexRune(slice[1], '.'); pos != 0 {
17-
return slice[1][:pos]
1816
}
1917
return slice[1]
2018
}

0 commit comments

Comments
 (0)