diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/or/dirserv.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 0d3e7823c6..10b9e63894 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1922,6 +1922,13 @@ routerstatus_format_entry(const routerstatus_t *rs, const char *version, smartlist_add_asprintf(chunks, " Measured=%d", vrs->measured_bw_kb); } + /* Write down guardfraction information if we have it. */ + if (format == NS_V3_VOTE && vrs && vrs->status.has_guardfraction) { + smartlist_add_asprintf(chunks, + " GuardFraction=%d", + vrs->status.guardfraction_percentage); + } + smartlist_add(chunks, tor_strdup("\n")); if (desc) { |