You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix asPercent error when series has more values than totalSeries (#87)
* Check if totalSeries value length is less than series value length
* Set NaN for series values after totalSeries values length
* Add test for differing values length and step for series and totalSeries
* Add handling for length of seriesList < length of totalSeries values
* Add docstring for getPercentages
"asPercent(metricC*,metricD*)", // This test is to verify that passing in metrics with different number of values and different step values for the series and the totalSeries does not throw an error
76
+
map[parser.MetricRequest][]*types.MetricData{
77
+
{"metricC*", 0, 1}: {
78
+
types.MakeMetricData("metricC1", []float64{1, 20, 10, 15, 5}, 1, now32), // Test that error isn't thrown when seriesList has more values than totalSeries
0 commit comments