some regression tests
This commit is contained in:
parent
07c96b1948
commit
c7170a2650
5 changed files with 61 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ func (ts TimeSeries) Len() int {
|
|||
|
||||
// GetValue gets a value at a given index.
|
||||
func (ts TimeSeries) GetValue(index int) (x float64, y float64) {
|
||||
x = float64(ts.XValues[index].Unix())
|
||||
x = TimeToFloat64(ts.XValues[index])
|
||||
y = ts.YValues[index]
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue