From 8e6b3efd39ee2c31e75bcf24579fcb2804059413 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Mon, 13 Oct 2014 10:59:32 -0700 Subject: [PATCH] put bandwidth totals into the diagnostic messages --- diagnostics/diag.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/diagnostics/diag.go b/diagnostics/diag.go index 8a6c636b6a55..8b17426b77c6 100644 --- a/diagnostics/diag.go +++ b/diagnostics/diag.go @@ -53,6 +53,8 @@ type diagInfo struct { Connections []connDiagInfo Keys []string LifeSpan time.Duration + BwIn uint64 + BwOut uint64 CodeVersion string } @@ -75,6 +77,7 @@ func (d *Diagnostics) getDiagInfo() *diagInfo { di.ID = d.self.ID.Pretty() di.LifeSpan = time.Since(d.birth) di.Keys = nil // Currently no way to query datastore + di.BwIn, di.BwOut = d.network.GetBandwidthTotals() for _, p := range d.getPeers() { di.Connections = append(di.Connections, connDiagInfo{p.GetLatency(), p.ID.Pretty()})