Commit 2c019b54 authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

core/commands: Fixed net diag command not outputting in chosen format

parent ae5e2443
......@@ -106,6 +106,7 @@ connected peers and latencies between them.
switch vis {
case visD3:
res.SetOutput(bytes.NewReader(diag.GetGraphJson(info)))
return
case visDot:
var buf bytes.Buffer
w := diag.DotWriter{W: &buf}
......@@ -115,6 +116,7 @@ connected peers and latencies between them.
return
}
res.SetOutput(io.Reader(&buf))
return
}
output, err := stdDiagOutputMarshal(standardDiagOutput(info))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment