Skip to content

Commit

Permalink
corrected destination device naming
Browse files Browse the repository at this point in the history
  • Loading branch information
wsw70 committed Jan 16, 2023
1 parent 80d1b21 commit e5a179a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writeGraph.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func writeGraph(dataFilename string, outputFilename string) {
folders[i].ID = hashData([]string{folders[i].ID, localDeviceId})
}
// container for the device
mermaidCode = append(mermaidCode, fmt.Sprintf("subgraph %s[\"%s\"]", hashData([]string{localDeviceId}), localDeviceName))
mermaidCode = append(mermaidCode, fmt.Sprintf("subgraph x%s[\"%s\"]", localDeviceId, localDeviceName))
for _, folder := range folders {
mermaidCode = append(mermaidCode, fmt.Sprintf("%s[\"%s\"]", folder.ID, folder.Label))
}
Expand Down

0 comments on commit e5a179a

Please sign in to comment.