Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
redis-3143396
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
redis-3143396
Commits
bc2314e9
Commit
bc2314e9
authored
3 years ago
by
hugronaphor
Committed by
Sascha Grossenbacher
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3161250
by hugronaphor, mhavelant: Undefined index notices on the report page
parent
943bf35c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Controller/ReportController.php
+2
-2
2 additions, 2 deletions
src/Controller/ReportController.php
with
2 additions
and
2 deletions
src/Controller/ReportController.php
+
2
−
2
View file @
bc2314e9
...
...
@@ -171,9 +171,9 @@ class ReportController extends ControllerBase {
if
(
$memory_config
[
'maxmemory'
])
{
$memory_value
=
$this
->
t
(
'@used_memory / @max_memory (@used_percentage%), maxmemory policy: @policy'
,
[
'@used_memory'
=>
$info
[
'used_memory_human'
],
'@used_memory'
=>
$info
[
'used_memory_human'
]
??
$info
[
'Memory'
][
'used_memory_human'
]
,
'@max_memory'
=>
format_size
(
$memory_config
[
'maxmemory'
]),
'@used_percentage'
=>
(
int
)
(
$info
[
'used_memory'
]
/
$memory_config
[
'maxmemory'
]
*
100
),
'@used_percentage'
=>
(
int
)
(
$info
[
'used_memory'
]
??
$info
[
'Memory'
][
'used_memory'
]
/
$memory_config
[
'maxmemory'
]
*
100
),
'@policy'
=>
$memory_config
[
'maxmemory-policy'
],
]);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment