diff --git a/src/redis-shake/metric/variables.go b/src/redis-shake/metric/variables.go index 4e46bc3..f3a60a1 100644 --- a/src/redis-shake/metric/variables.go +++ b/src/redis-shake/metric/variables.go @@ -35,8 +35,8 @@ type MetricRest struct { func NewMetricRest() []MetricRest { detailMapList := runner.GetDetailedInfo().([]map[string]interface{}) if detailMapList == nil || len(detailMapList) == 0 { - return []{ - MetricRest{ + return []MetricRest{ + { StartTime: utils.StartTime, Status: base.Status, },