From 07281659dab46f70935ca7a80f1349c6a8583c19 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 14:06:30 +0100 Subject: [PATCH] ax(mining): replace prose comment with usage example on ReduceHashrateHistory AX Principle 2: comments must show HOW with concrete values, not restate what the signature already says. Co-Authored-By: Charon --- pkg/mining/miner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mining/miner.go b/pkg/mining/miner.go index 6658b7c..632b6ab 100644 --- a/pkg/mining/miner.go +++ b/pkg/mining/miner.go @@ -459,7 +459,7 @@ func (b *BaseMiner) GetLogs() []string { return logBuffer.GetLines() } -// ReduceHashrateHistory aggregates and trims hashrate data. +// miner.ReduceHashrateHistory(time.Now()) // aggregates high-res points older than 5 min into 1-min low-res buckets; trims low-res to 24h func (b *BaseMiner) ReduceHashrateHistory(now time.Time) { b.mutex.Lock() defer b.mutex.Unlock()