mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
add labels, comment to DiffHist
This commit is contained in:
parent
e22426b885
commit
fd0cab6b7c
@ -40,14 +40,16 @@ func (h FloatHist) Append(val float64) {
|
||||
}
|
||||
|
||||
type DiffHist struct {
|
||||
data []int
|
||||
srcData []int
|
||||
data []int // data point derivatives
|
||||
srcData []int // principal input data
|
||||
labels []string
|
||||
}
|
||||
|
||||
func NewDiffHist(max int) DiffHist {
|
||||
return DiffHist{
|
||||
make([]int, max),
|
||||
make([]int, max),
|
||||
data: make([]int, max),
|
||||
srcData: make([]int, max),
|
||||
labels: make([]string, max),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user