]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Give rep_hist_exit_stats_history() a better name.
authorKarsten Loesing <karsten.loesing@gmx.net>
Sun, 15 Aug 2010 12:15:58 +0000 (14:15 +0200)
committerKarsten Loesing <karsten.loesing@gmx.net>
Sun, 15 Aug 2010 12:15:58 +0000 (14:15 +0200)
src/or/rephist.c
src/or/rephist.h

index 63e602d052702100e11d2d00a1069d39aa9f4079..b6a19d4b16ba5a466505f6271bfa4f6616a51712 100644 (file)
@@ -1913,7 +1913,7 @@ rep_hist_exit_stats_term(void)
 /** Return a newly allocated string containing the exit port statistics
  * until <b>now</b>, or NULL if we're not collecting exit stats. */
 char *
-rep_hist_exit_stats_history(time_t now)
+rep_hist_format_exit_stats(time_t now)
 {
   int i;
   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.");
 
   /* Generate history string. */
-  str = rep_hist_exit_stats_history(now);
+  str = rep_hist_format_exit_stats(now);
 
   /* Reset counters. */
   rep_hist_reset_exit_stats(now);
index dfdce4e1db076c5c0183b1ce0a4e45b42a58291e..f655500eb8b0acb2490593603a52bafc83076f84 100644 (file)
@@ -68,7 +68,7 @@ void hs_usage_free_all(void);
 void rep_hist_exit_stats_init(time_t now);
 void rep_hist_reset_exit_stats(time_t now);
 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);
 void rep_hist_note_exit_bytes(uint16_t port, size_t num_written,
                               size_t num_read);