Precalculate index stats
This commit is contained in:
@@ -29,10 +29,11 @@ type ShareLog struct {
|
||||
Agent string `json:"agent"` // Miner agent string (e.g., bitaxe/BM1370)
|
||||
}
|
||||
|
||||
type ShareStat struct {
|
||||
Label string
|
||||
Diff string
|
||||
Time string
|
||||
type TimeWindowHighShare struct {
|
||||
TimeWindowID string `json:"time_window_id"` // Unique ID for the time window
|
||||
TimeWindowName string `json:"time_window_name"` // Name of the time window (e.g., "Past Hour")
|
||||
SDiff float64 `json:"share_diff"` // Difficulty of the highest share
|
||||
Time string `json:"share_time"` // Time of the highest share
|
||||
}
|
||||
|
||||
// ParseCreateDate can be used to convert ShareLog.CreateDate to time.Time
|
||||
|
||||
Reference in New Issue
Block a user