ax(database): replace signature-restatement comment with usage example on HashrateStats
Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
89e70a4449
commit
02ffd28eaf
1 changed files with 3 additions and 1 deletions
|
|
@ -112,7 +112,9 @@ func GetHashrateHistory(minerName string, resolution Resolution, since, until ti
|
|||
return points, rows.Err()
|
||||
}
|
||||
|
||||
// GetHashrateStats retrieves aggregated stats for a miner
|
||||
// HashrateStats holds aggregated performance data for a single miner.
|
||||
// stats, err := database.GetHashrateStats("xmrig")
|
||||
// if stats != nil { fmt.Println(stats.AverageRate) }
|
||||
type HashrateStats struct {
|
||||
MinerName string `json:"minerName"`
|
||||
TotalPoints int `json:"totalPoints"`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue