Skip to content

Commit

Permalink
minor cleanups on commit 17daab7
Browse files Browse the repository at this point in the history
better punctuation and clearer wording
  • Loading branch information
Roger Dingledine committed May 8, 2018
1 parent 5ad72bc commit c3ae145
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/or/hs_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/**
* \file hs_stats.c
* \brief Keeps stats about the activity of our hidden service.
* \brief Keeps stats about the activity of our onion service(s).
**/

#include "or.h"
Expand Down Expand Up @@ -42,14 +42,14 @@ hs_stats_get_n_introduce2_v2_cells(void)
return n_introduce2_v2;
}

/** Note that we attempted to launch another circuit to a rendezvous point */
/** Note that we attempted to launch another circuit to a rendezvous point. */
void
hs_stats_note_service_rendezvous_launch(void)
{
n_rendezvous_launches++;
}

/** Return the number of rendezvous circuits we have attempted to launch */
/** Return the number of rendezvous circuits we have attempted to launch. */
uint32_t
hs_stats_get_n_rendezvous_launches(void)
{
Expand Down
6 changes: 3 additions & 3 deletions src/or/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,19 @@ bytes_to_usage(uint64_t bytes)
return bw_string;
}

/** Log some usage info about our hidden service */
/** Log some usage info about our onion service(s). */
static void
log_onion_service_stats(void)
{
unsigned int num_services = hs_service_get_num_services();

/* If there are no active hidden services, no need to print logs */
/* If there are no active onion services, no need to print logs */
if (num_services == 0) {
return;
}

log_notice(LD_HEARTBEAT,
"Our hidden service%s received %u v2 and %u v3 INTRODUCE2 cells "
"Our onion service%s received %u v2 and %u v3 INTRODUCE2 cells "
"and attempted to launch %d rendezvous circuits.",
num_services == 1 ? "" : "s",
hs_stats_get_n_introduce2_v2_cells(),
Expand Down

0 comments on commit c3ae145

Please sign in to comment.