Skip to content

Commit

Permalink
Merge pull request #42 from Chia-Network/total-plots-update
Browse files Browse the repository at this point in the history
Set total plots from the get plots endpoint as well
  • Loading branch information
cmmarslender authored Jul 1, 2022
2 parents b238220 + 99972c7 commit 6cb92de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/metrics/harvester.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ func (s *HarvesterServiceMetrics) ProcessGetPlots(plots *rpc.HarvesterGetPlotsRe

s.totalPoolPlots.Set(float64(poolPlotCount))
s.totalOGPlots.Set(float64(ogPlotCount))
s.totalPlots.Set(float64(ogPlotCount + poolPlotCount))

s.totalPlotsValue = uint64(len(plots.Plots))
}

0 comments on commit 6cb92de

Please sign in to comment.