make bitching less verbose
authorChristian Grothoff <christian@grothoff.org>
Tue, 13 Sep 2011 13:56:03 +0000 (13:56 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 13 Sep 2011 13:56:03 +0000 (13:56 +0000)
src/fs/gnunet-service-fs_cp.c

index 527ca7677f198f396e408773eddc709ccb0551e5..c22f8b20a57af9a258cac1526e6e7cf223e1fe19 100644 (file)
@@ -335,7 +335,12 @@ get_latency (const struct GNUNET_TRANSPORT_ATS_Information *atsi)
     atsi++;
   if (ntohl (atsi->type) == GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR)
   {
-    GNUNET_break (0);
+    static int once;
+    if (! once)
+      {
+       once = 1;
+       GNUNET_break (0);
+      }
     /* how can we not have latency data? */
     return GNUNET_TIME_UNIT_SECONDS;
   }