aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-01-30 17:35:28 -0500
committerNick Mathewson <nickm@torproject.org>2013-01-30 17:35:28 -0500
commitb0dd35589124ba596532b3640d28dfb21989b590 (patch)
tree01afe3d5a4d5904fcf46824f403faba6f593786e /src/or/nodelist.c
parent73f85905aa9cfe6ee4f014f54d5713ab662c207a (diff)
downloadtor-b0dd35589124ba596532b3640d28dfb21989b590.tar
tor-b0dd35589124ba596532b3640d28dfb21989b590.tar.gz
Use %d, not %02d, for decimal percentages
Cosmetic tweak on 5956; not in any released tor.
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r--src/or/nodelist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index 4d7395b04..c2eb670e4 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -1349,9 +1349,9 @@ compute_frac_paths_available(const networkstatus_t *consensus,
f_exit = f_myexit;
tor_asprintf(status_out,
- "%02d%% of guards bw, "
- "%02d%% of midpoint bw, and "
- "%02d%% of exit bw",
+ "%d%% of guards bw, "
+ "%d%% of midpoint bw, and "
+ "%d%% of exit bw",
(int)(f_guard*100),
(int)(f_mid*100),
(int)(f_exit*100));
@@ -1447,7 +1447,7 @@ update_router_have_minimum_dir_info(void)
if (paths < get_frac_paths_needed_for_circs(options,consensus)) {
tor_snprintf(dir_info_status, sizeof(dir_info_status),
"We need more %sdescriptors: we have %d/%d, and "
- "can only build %02d%% of likely paths. (We have %s.)",
+ "can only build %d%% of likely paths. (We have %s.)",
using_md?"micro":"", num_present, num_usable,
(int)(paths*100), status);
/* log_notice(LD_NET, "%s", dir_info_status); */