Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
2c019b54
Commit
2c019b54
authored
Jan 24, 2015
by
Matt Bell
Committed by
Juan Batiz-Benet
Jan 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/commands: Fixed net diag command not outputting in chosen format
parent
ae5e2443
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
core/commands/diag.go
core/commands/diag.go
+2
-0
No files found.
core/commands/diag.go
View file @
2c019b54
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment