ax(database): replace signature-restatement comment with usage example on HashrateStats

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 14:15:15 +01:00
parent 89e70a4449
commit 02ffd28eaf
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -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"`