mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-27 12:05:23 +00:00
Fix showing active queues in yggdrasilctl
This commit is contained in:
parent
b530916044
commit
95c551d011
@ -203,9 +203,9 @@ func main() {
|
|||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("Active queues:")
|
fmt.Println("Active queues:")
|
||||||
for k, v := range queues {
|
for _, v := range queues {
|
||||||
fmt.Printf("[%d] - Queue '%v', size: %d, packets: %d\n", k+1,
|
fmt.Printf("- Stream ID: %v, size: %d, packets: %d\n",
|
||||||
v.(map[string]interface{})["queue_id"].([]byte),
|
[]byte(v.(map[string]interface{})["queue_id"].(string)),
|
||||||
uint(v.(map[string]interface{})["queue_size"].(float64)),
|
uint(v.(map[string]interface{})["queue_size"].(float64)),
|
||||||
uint(v.(map[string]interface{})["queue_packets"].(float64)))
|
uint(v.(map[string]interface{})["queue_packets"].(float64)))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user