diff --git a/rrd_c.go b/rrd_c.go index c2e528f..639c200 100644 --- a/rrd_c.go +++ b/rrd_c.go @@ -441,7 +441,7 @@ func Fetch(filename, cf string, start, end time.Time, step time.Duration) (Fetch } C.free(unsafe.Pointer(cDsNames)) - rowCnt := (int(cEnd)-int(cStart))/int(cStep) + 1 + rowCnt := (int(cEnd)-int(cStart))/int(cStep) valuesLen := dsCnt * rowCnt values := make([]float64, valuesLen) sliceHeader := (*reflect.SliceHeader)((unsafe.Pointer(&values)))