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
Container Registry
Model registry
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
The Tor Project
Core
Tor
Commits
fe481147
Commit
fe481147
authored
13 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Chop out the intro point calculation until it is simple enough for nickm to grok
parent
31d63507
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/or/rendservice.c
+8
-5
8 additions, 5 deletions
src/or/rendservice.c
with
8 additions
and
5 deletions
src/or/rendservice.c
+
8
−
5
View file @
fe481147
...
...
@@ -974,11 +974,14 @@ rend_service_note_removing_intro_point(rend_service_t *service,
* service->n_intro_points_wanted and let rend_services_introduce
* create the new intro points we want (if any).
*/
double
fractional_n_intro_points_wanted_to_replace_this_one
=
(
1
.
5
*
((
intro_point_accepted_intro_count
(
intro
)
/
(
double
)
INTRO_POINT_LIFETIME_INTRODUCTIONS
)
/
(((
double
)
now
-
intro
->
time_published
)
/
INTRO_POINT_LIFETIME_MIN_SECONDS
)));
const
double
intro_point_usage
=
intro_point_accepted_intro_count
(
intro
)
/
(
double
)(
now
-
intro
->
time_published
);
const
double
intro_point_target_usage
=
INTRO_POINT_LIFETIME_INTRODUCTIONS
/
(
double
)
INTRO_POINT_LIFETIME_MIN_SECONDS
;
const
double
fractional_n_intro_points_wanted_to_replace_this_one
=
(
1
.
5
*
(
intro_point_usage
/
intro_point_target_usage
));
unsigned
int
n_intro_points_wanted_to_replace_this_one
;
unsigned
int
n_intro_points_wanted_now
;
unsigned
int
n_intro_points_really_wanted_now
;
...
...
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