Identify switchport for queue based on coords in stream ID

This commit is contained in:
Neil Alexander 2018-09-27 15:05:45 +01:00
parent 8113b4cc22
commit 0b1a6611fd
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 20 additions and 1 deletions

View file

@ -204,7 +204,8 @@ func main() {
} else {
fmt.Println("Active queues:")
for _, v := range queues {
fmt.Printf("- Stream ID: %v, size: %d, packets: %d\n",
fmt.Printf("- Switch port %d, Stream ID: %v, size: %d, packets: %d\n",
uint(v.(map[string]interface{})["queue_port"].(float64)),
[]byte(v.(map[string]interface{})["queue_id"].(string)),
uint(v.(map[string]interface{})["queue_size"].(float64)),
uint(v.(map[string]interface{})["queue_packets"].(float64)))