Report count of active IP addresses in status
This commit is contained in:
1 parent
1ae2d33714
commit
6d5af85eee
4 files changed
+15
-1
No files matched your search
+2
-1
@@ -57,7 +57,8 @@ var rootTemplate = template.New("root").Funcs(map[string]interface{}{
|
||||
|
||||
// print the local info first
|
||||
if ourStats := peerStats[router.Name]; ourStats != nil {
|
||||
printOwned(router.Name, ourStats.nickname, "", ourStats.ips)
|
||||
activeStr := fmt.Sprintf("(%d active)", status.ActiveIPs)
|
||||
printOwned(router.Name, ourStats.nickname, activeStr, ourStats.ips)
|
||||
}
|
||||
|
||||
// and then the rest
|
||||
|
||||
Reference in new issue
Block a user