X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=core%2Fstats.go;h=0717be60c61eb43538478f08870e886aa538de20;hb=7ca550fd6421bdeb1e81b33198965f24398cfac1;hp=2a9e96432559b6006c28ec42246eaa52321ad7b3;hpb=d372b4efe26650dbc83908ca0bbee38d90aed3e9;p=govpp.git diff --git a/core/stats.go b/core/stats.go index 2a9e964..0717be6 100644 --- a/core/stats.go +++ b/core/stats.go @@ -88,7 +88,7 @@ func newStatsConnection(stats adapter.StatsAPI) *StatsConnection { } } -// Connect connects to Stats API using specified adapter and returns a connection handle. +// ConnectStats connects to Stats API using specified adapter and returns a connection handle. // This call blocks until it is either connected, or an error occurs. // Only one connection attempt will be performed. func ConnectStats(stats adapter.StatsAPI) (*StatsConnection, error) { @@ -177,7 +177,7 @@ func (c *StatsConnection) updateStats(statDir **adapter.StatDir, patterns ...str return err } -// UpdateSystemStats retrieves VPP system stats. +// GetSystemStats retrieves VPP system stats. func (c *StatsConnection) GetSystemStats(sysStats *api.SystemStats) (err error) { if err := c.updateStats(&c.sysStatsData, SystemStatsPrefix); err != nil { return err