ax(mining): replace prose comment with usage example on ReduceHashrateHistory
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

AX Principle 2: comments must show HOW with concrete values, not restate
what the signature already says.

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

View file

@ -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()