fix truncate

This commit is contained in:
c9s 2020-08-06 23:45:30 +08:00
parent 0fffc379fc
commit 5ffd751701

View File

@ -343,7 +343,7 @@ func (k *KLineWindow) Truncate(size int) {
if start < 0 { if start < 0 {
start = 0 start = 0
} }
*k = (*k)[end-5 : end] *k = (*k)[start : end]
} }
func (k KLineWindow) GetBody() float64 { func (k KLineWindow) GetBody() float64 {