added access to os.n
This commit is contained in:
parent
74b57a41fe
commit
c08709a2b2
4
ostat.go
4
ostat.go
@ -104,6 +104,10 @@ func (os *OnlineStat) CI() (float64, float64) {
|
|||||||
return os.mean - dev*conf, os.mean + dev*conf
|
return os.mean - dev*conf, os.mean + dev*conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (os *OnlineStat) N() uint64 {
|
||||||
|
return os.n
|
||||||
|
}
|
||||||
|
|
||||||
func (os *OnlineStat) String() string {
|
func (os *OnlineStat) String() string {
|
||||||
return fmt.Sprintf(
|
return fmt.Sprintf(
|
||||||
"%+v",
|
"%+v",
|
||||||
|
Loading…
Reference in New Issue
Block a user