mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-02 17:19:24 +00:00
Fix an issue in ConnectionStart
This commit is contained in:
parent
2a68271238
commit
172683fe21
@ -559,7 +559,7 @@ func emitConnectionStart(event ConnectionStart, connectionInfo *api.ConnectionIn
|
|||||||
Type: "connection_start",
|
Type: "connection_start",
|
||||||
Data: &AMQPWrapper{
|
Data: &AMQPWrapper{
|
||||||
Method: connectionMethodMap[10],
|
Method: connectionMethodMap[10],
|
||||||
Url: fmt.Sprintf("%s.%s", string(event.VersionMajor), string(event.VersionMinor)),
|
Url: fmt.Sprintf("%d.%d", event.VersionMajor, event.VersionMinor),
|
||||||
Details: event,
|
Details: event,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -6,6 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
"github.com/up9inc/mizu/tap/api"
|
"github.com/up9inc/mizu/tap/api"
|
||||||
)
|
)
|
||||||
@ -223,7 +224,11 @@ func (d dissecting) Analyze(item *api.OutputChannelItem, entryId string, resolve
|
|||||||
summary = reqDetails["Queue"].(string)
|
summary = reqDetails["Queue"].(string)
|
||||||
break
|
break
|
||||||
case connectionMethodMap[10]:
|
case connectionMethodMap[10]:
|
||||||
summary = fmt.Sprintf("%g.%g", reqDetails["VersionMajor"].(float64), reqDetails["VersionMinor"].(float64))
|
summary = fmt.Sprintf(
|
||||||
|
"%s.%s",
|
||||||
|
strconv.Itoa(int(reqDetails["VersionMajor"].(float64))),
|
||||||
|
strconv.Itoa(int(reqDetails["VersionMinor"].(float64))),
|
||||||
|
)
|
||||||
break
|
break
|
||||||
case connectionMethodMap[50]:
|
case connectionMethodMap[50]:
|
||||||
summary = reqDetails["ReplyText"].(string)
|
summary = reqDetails["ReplyText"].(string)
|
||||||
|
Loading…
Reference in New Issue
Block a user