Report count of active IP addresses in status

This commit is contained in:
Bryan Boreham committed 2016-10-20 14:04:41 +01:00
1 parent 1ae2d33714
commit 6d5af85eee
4 files changed
+15 -1

No files matched your search

+2 -1
View File
@@ -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