Skip to content

Commit

Permalink
various: Replaced nagopher.BaseSummary with shared.BasePluginSummary …
Browse files Browse the repository at this point in the history
…implementation in all plugins
  • Loading branch information
ppmathis committed Apr 23, 2018
1 parent fa7ef1e commit 1731f18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mod-frrouting/bgp_neighbor.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type bgpNeighborPlugin struct {
}

type bgpNeighborSummary struct {
*nagopher.BaseSummary
*shared.BasePluginSummary
}

type bgpNeighborStatsCollection map[string]bgpNeighborStats
Expand Down Expand Up @@ -255,7 +255,7 @@ func (p *bgpNeighborPlugin) fetchStatistics() (*bgpNeighborStats, error) {

func newBgpNeighborSummary() *bgpNeighborSummary {
return &bgpNeighborSummary{
BaseSummary: nagopher.NewBaseSummary(),
BasePluginSummary: shared.NewPluginSummary(),
}
}

Expand Down
4 changes: 2 additions & 2 deletions mod-system/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type interfacePlugin struct {
}

type interfaceSummary struct {
*nagopher.BaseSummary
*shared.BasePluginSummary
}

type interfaceStats struct {
Expand Down Expand Up @@ -119,7 +119,7 @@ func (p *interfacePlugin) Probe(warnings *nagopher.WarningCollection) (metrics [

func newInterfaceSummary() *interfaceSummary {
return &interfaceSummary{
BaseSummary: nagopher.NewBaseSummary(),
BasePluginSummary: shared.NewPluginSummary(),
}
}

Expand Down
4 changes: 2 additions & 2 deletions mod-system/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type memoryUsage struct {
}

type memorySummary struct {
*nagopher.BaseSummary
*shared.BasePluginSummary
}

func newMemoryPlugin() *memoryPlugin {
Expand Down Expand Up @@ -109,7 +109,7 @@ func (p *memoryPlugin) Probe(warnings *nagopher.WarningCollection) (metrics []na

func newMemorySummary() *memorySummary {
return &memorySummary{
BaseSummary: nagopher.NewBaseSummary(),
BasePluginSummary: shared.NewPluginSummary(),
}
}

Expand Down

0 comments on commit 1731f18

Please sign in to comment.