Merge pull request #181 from Arceliar/admin-dot

Fix bug in admin dot graph
This commit is contained in:
Neil Alexander 2018-09-05 09:40:15 +01:00 committed by GitHub
commit 81ca5d8ede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -656,6 +656,16 @@ func (a *admin) getResponse_dot() []byte {
newInfo.name = "?"
newInfo.key = key
newInfo.options = "fontname=\"sans serif\" style=dashed color=\"#999999\" fontcolor=\"#999999\""
coordsSplit := coordSlice(newInfo.key)
if len(coordsSplit) != 0 {
portStr := coordsSplit[len(coordsSplit)-1]
portUint, err := strconv.ParseUint(portStr, 10, 64)
if err == nil {
newInfo.port = switchPort(portUint)
}
}
infos[key] = newInfo
}
}