save: fix index out of range with fixed client number

This commit is contained in:
Gyu-Ho Lee 2017-02-06 13:56:20 -08:00
parent 08660f4093
commit c4fefe1fa8
No known key found for this signature in database
GPG Key ID: 1DDD39C7EB70C24C
1 changed files with 6 additions and 0 deletions

View File

@ -211,6 +211,12 @@ func (cfg *Config) saveDataLatencyDistributionAll(st report.Stats) {
}
func (cfg *Config) saveDataLatencyThroughputTimeseries(gcfg TestGroup, st report.Stats, clientNs []int64) {
if len(clientNs) == 0 && len(gcfg.ConnectionClientNumbers) == 0 {
clientNs = make([]int64, len(st.TimeSeries))
for i := range clientNs {
clientNs[i] = gcfg.BenchmarkOptions.ClientNumber
}
}
c1 := dataframe.NewColumn("UNIX-SECOND")
c2 := dataframe.NewColumn("CONTROL-CLIENT-NUM")
c3 := dataframe.NewColumn("MIN-LATENCY-MS")