Skip to content

Commit

Permalink
🕵️
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerj0 committed Apr 24, 2024
1 parent 22b0e97 commit 3f5222d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/acceptance/app/dynamic_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ var _ = Describe("AutoScaler dynamic policy", func() {
doneAcceptChan <- true
return
case <-ticker.C:
cfh.CurlApp(cfg, appName, "/responsetime/fast", "-f")
go func() {
cfh.CurlApp(cfg, appName, "/responsetime/fast", "-f")
}()
}
}
}(doneChan)
Expand Down
2 changes: 1 addition & 1 deletion src/autoscaler/eventgenerator/client/log_cache_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (c *LogCacheClient) GetMetrics(appId string, metricType string, startTime t
return []models.AppInstanceMetric{}, fmt.Errorf("result does not contain a vector")
}

// return empty metrics if there are no samples
// return empty metrics if there are no samples, this usually happens in case there were no recent http-requests towards the application
if len(vector.GetSamples()) <= 0 {
return c.emptyAppInstanceMetrics(appId, models.MetricNameThroughput, models.UnitRPS, now)
}
Expand Down

0 comments on commit 3f5222d

Please sign in to comment.