Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2019-09-03 15:13:36 +0300
committerSean McGivern <sean@gitlab.com>2019-09-03 15:13:36 +0300
commit18018bcd41c0a08c2a506733241206a0e0a9b7e5 (patch)
tree8794becf0dc3a58b93ef33205228df387356764d /lib/peek/views/active_record.rb
parent937b2027041e6d1f2aad1b62af107c0768f4a6f2 (diff)
Fix performance bar thresholds
These were written in seconds but are supposed to be in milliseconds. The total Gitaly time was wrong for the same reason.
Diffstat (limited to 'lib/peek/views/active_record.rb')
-rw-r--r--lib/peek/views/active_record.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/peek/views/active_record.rb b/lib/peek/views/active_record.rb
index bbc9f11e90f..1bb3ddb964a 100644
--- a/lib/peek/views/active_record.rb
+++ b/lib/peek/views/active_record.rb
@@ -5,15 +5,15 @@ module Peek
class ActiveRecord < DetailedView
DEFAULT_THRESHOLDS = {
calls: 100,
- duration: 3,
- individual_call: 1
+ duration: 3000,
+ individual_call: 1000
}.freeze
THRESHOLDS = {
production: {
calls: 100,
- duration: 15,
- individual_call: 5
+ duration: 15000,
+ individual_call: 5000
}
}.freeze