]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
omit the first heartbeat message (resolves ticket 6758)
authorRoger Dingledine <arma@torproject.org>
Mon, 3 Sep 2012 22:13:35 +0000 (18:13 -0400)
committerRoger Dingledine <arma@torproject.org>
Mon, 3 Sep 2012 22:13:35 +0000 (18:13 -0400)
changes/feature6758 [new file with mode: 0644]
src/or/main.c

diff --git a/changes/feature6758 b/changes/feature6758
new file mode 100644 (file)
index 0000000..049f05e
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor features:
+    - Omit the first heartbeat log message, because it never has anything
+      useful to say, and it clutters up the bootstrapping messages.
+      Resolves ticket 6758.
+
index 20a1e086a4440aee6a5529b777cfb1dd4cb32766..da79cbdfdc85dd97e82e7996ee52c9d8acc99dd9 100644 (file)
@@ -1561,7 +1561,8 @@ run_scheduled_events(time_t now)
   /** 12. write the heartbeat message */
   if (options->HeartbeatPeriod &&
       time_to_next_heartbeat <= now) {
-    log_heartbeat(now);
+    if (time_to_next_heartbeat) /* don't log the first heartbeat */
+      log_heartbeat(now);
     time_to_next_heartbeat = now+options->HeartbeatPeriod;
   }
 }