|
@@ -5014,12 +5014,12 @@ update_router_have_minimum_dir_info(void)
|
|
|
|
|
|
/* What fraction of desired server descriptors do we need before we will
|
|
|
* build circuits? */
|
|
|
-#define FRACTION_USABLE_NEEDED .75
|
|
|
+#define FRAC_USABLE_NEEDED .75
|
|
|
/* What fraction of desired _exit_ server descriptors do we need before we
|
|
|
* will build circuits? */
|
|
|
-#define FRACTION_EXIT_USABLE_NEEDED .5
|
|
|
+#define FRAC_EXIT_USABLE_NEEDED .5
|
|
|
|
|
|
- if (num_present < num_usable * FRACTION_USABLE_NEEDED) {
|
|
|
+ if (num_present < num_usable * FRAC_USABLE_NEEDED) {
|
|
|
tor_snprintf(dir_info_status, sizeof(dir_info_status),
|
|
|
"We have only %d/%d usable %sdescriptors.",
|
|
|
num_present, num_usable, using_md ? "micro" : "");
|
|
@@ -5032,7 +5032,7 @@ update_router_have_minimum_dir_info(void)
|
|
|
num_present, using_md ? "micro" : "", num_present ? "" : "s");
|
|
|
res = 0;
|
|
|
goto done;
|
|
|
- } else if (num_exit_present < num_exit_usable * FRACTION_EXIT_USABLE_NEEDED) {
|
|
|
+ } else if (num_exit_present < num_exit_usable * FRAC_EXIT_USABLE_NEEDED) {
|
|
|
tor_snprintf(dir_info_status, sizeof(dir_info_status),
|
|
|
"We have only %d/%d usable exit node descriptors.",
|
|
|
num_exit_present, num_exit_usable);
|