Give rep_hist_exit_stats_history() a better name.

This commit is contained in:
Karsten Loesing 2010-08-15 14:15:58 +02:00
parent 3d77c67d93
commit 69545efbaf
2 changed files with 3 additions and 3 deletions

View File

@ -1913,7 +1913,7 @@ rep_hist_exit_stats_term(void)
/** Return a newly allocated string containing the exit port statistics /** Return a newly allocated string containing the exit port statistics
* until <b>now</b>, or NULL if we're not collecting exit stats. */ * until <b>now</b>, or NULL if we're not collecting exit stats. */
char * char *
rep_hist_exit_stats_history(time_t now) rep_hist_format_exit_stats(time_t now)
{ {
int i; int i;
uint64_t total_bytes = 0, threshold_bytes, other_read = 0, uint64_t total_bytes = 0, threshold_bytes, other_read = 0,
@ -2034,7 +2034,7 @@ rep_hist_exit_stats_write(time_t now)
log_info(LD_HIST, "Writing exit port statistics to disk."); log_info(LD_HIST, "Writing exit port statistics to disk.");
/* Generate history string. */ /* Generate history string. */
str = rep_hist_exit_stats_history(now); str = rep_hist_format_exit_stats(now);
/* Reset counters. */ /* Reset counters. */
rep_hist_reset_exit_stats(now); rep_hist_reset_exit_stats(now);

View File

@ -68,7 +68,7 @@ void hs_usage_free_all(void);
void rep_hist_exit_stats_init(time_t now); void rep_hist_exit_stats_init(time_t now);
void rep_hist_reset_exit_stats(time_t now); void rep_hist_reset_exit_stats(time_t now);
void rep_hist_exit_stats_term(void); void rep_hist_exit_stats_term(void);
char *rep_hist_exit_stats_history(time_t now); char *rep_hist_format_exit_stats(time_t now);
time_t rep_hist_exit_stats_write(time_t now); time_t rep_hist_exit_stats_write(time_t now);
void rep_hist_note_exit_bytes(uint16_t port, size_t num_written, void rep_hist_note_exit_bytes(uint16_t port, size_t num_written,
size_t num_read); size_t num_read);