ax(database): replace prose comment with usage example on GetAllMinerStats

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

View file

@ -185,7 +185,9 @@ func GetHashrateStats(minerName string) (*HashrateStats, error) {
return &stats, nil
}
// GetAllMinerStats retrieves stats for all miners
// GetAllMinerStats returns aggregated performance data for every known miner.
// allStats, err := database.GetAllMinerStats()
// for _, stats := range allStats { fmt.Println(stats.MinerName, stats.AverageRate) }
func GetAllMinerStats() ([]HashrateStats, error) {
databaseMutex.RLock()
defer databaseMutex.RUnlock()