Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orbea
Tor
Commits
96b59fc4
Commit
96b59fc4
authored
3 years ago
by
Neel Chauhan
Browse files
Options
Downloads
Patches
Plain Diff
Fix the fencepost issue when we check stability_last_downrated
parent
e247aab4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug40394
+4
-0
4 additions, 0 deletions
changes/bug40394
src/feature/stats/rephist.c
+1
-1
1 addition, 1 deletion
src/feature/stats/rephist.c
with
5 additions
and
1 deletion
changes/bug40394
0 → 100644
+
4
−
0
View file @
96b59fc4
o Minor bugfixes (statistics):
- Fix the fencepost issue when we check stability_last_downrated where
we call rep_hist_downrate_old_runs() twice. Fixes bug 40394; bugfix
on 0.2.0.5-alpha. Patch by Neel Chauhan.
This diff is collapsed.
Click to expand it.
src/feature/stats/rephist.c
+
1
−
1
View file @
96b59fc4
...
...
@@ -731,7 +731,7 @@ rep_hist_downrate_old_runs(time_t now)
return
stability_last_downrated
+
STABILITY_INTERVAL
;
/* Okay, we should downrate the data. By how much? */
while
(
stability_last_downrated
+
STABILITY_INTERVAL
<
now
)
{
while
(
stability_last_downrated
+
STABILITY_INTERVAL
<
=
now
)
{
stability_last_downrated
+=
STABILITY_INTERVAL
;
alpha
*=
STABILITY_ALPHA
;
}
...
...
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