Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
9a5a2d3f
Commit
9a5a2d3f
authored
4 years ago
by
Guillaume Heurtier
Browse files
Options
Downloads
Patches
Plain Diff
FEAT #15305 TIME 0:45 fix range fullness rate
parent
5e8ce84d
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/app/registeredMail/controllers/RegisteredNumberRangeController.php
+2
-2
2 additions, 2 deletions
...teredMail/controllers/RegisteredNumberRangeController.php
with
2 additions
and
2 deletions
src/app/registeredMail/controllers/RegisteredNumberRangeController.php
+
2
−
2
View file @
9a5a2d3f
...
@@ -28,7 +28,7 @@ class RegisteredNumberRangeController
...
@@ -28,7 +28,7 @@ class RegisteredNumberRangeController
foreach
(
$ranges
as
$key
=>
$range
)
{
foreach
(
$ranges
as
$key
=>
$range
)
{
$fullness
=
$range
[
'current_number'
]
-
$range
[
'range_start'
];
$fullness
=
$range
[
'current_number'
]
-
$range
[
'range_start'
];
$rangeSize
=
$range
[
'range_end'
]
-
$range
[
'range_start'
];
$rangeSize
=
$range
[
'range_end'
]
-
$range
[
'range_start'
]
+
1
;
$fullness
=
(
$fullness
/
$rangeSize
)
*
100
;
$fullness
=
(
$fullness
/
$rangeSize
)
*
100
;
$fullness
=
$fullness
<
0
?
0
:
$fullness
;
$fullness
=
$fullness
<
0
?
0
:
$fullness
;
$fullness
=
round
(
$fullness
,
2
);
$fullness
=
round
(
$fullness
,
2
);
...
@@ -63,7 +63,7 @@ class RegisteredNumberRangeController
...
@@ -63,7 +63,7 @@ class RegisteredNumberRangeController
}
}
$fullness
=
$range
[
'current_number'
]
-
$range
[
'range_start'
];
$fullness
=
$range
[
'current_number'
]
-
$range
[
'range_start'
];
$rangeSize
=
$range
[
'range_end'
]
-
$range
[
'range_start'
];
$rangeSize
=
$range
[
'range_end'
]
-
$range
[
'range_start'
]
+
1
;
$fullness
=
(
$fullness
/
$rangeSize
)
*
100
;
$fullness
=
(
$fullness
/
$rangeSize
)
*
100
;
$fullness
=
$fullness
<
0
?
0
:
$fullness
;
$fullness
=
$fullness
<
0
?
0
:
$fullness
;
$fullness
=
round
(
$fullness
,
2
);
$fullness
=
round
(
$fullness
,
2
);
...
...
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