gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r15576 - gnunet/src/core


From: gnunet
Subject: [GNUnet-SVN] r15576 - gnunet/src/core
Date: Tue, 14 Jun 2011 14:50:41 +0200

Author: nevans
Date: 2011-06-14 14:50:41 +0200 (Tue, 14 Jun 2011)
New Revision: 15576

Modified:
   gnunet/src/core/gnunet-service-core.c
Log:
update instead of set stats values

Modified: gnunet/src/core/gnunet-service-core.c
===================================================================
--- gnunet/src/core/gnunet-service-core.c       2011-06-14 12:13:03 UTC (rev 
15575)
+++ gnunet/src/core/gnunet-service-core.c       2011-06-14 12:50:41 UTC (rev 
15576)
@@ -3929,10 +3929,10 @@
                   sizeof(buf),
                   gettext_noop ("# bytes of messages of type %u received"),
                   (unsigned int) type);
-  GNUNET_STATISTICS_set (stats,
-                        buf,
-                        msize,
-                        GNUNET_NO);     
+  GNUNET_STATISTICS_update (stats,
+                            buf,
+                            msize,
+                            GNUNET_NO);
   dropped = GNUNET_YES;
   cpos = clients;
   while (cpos != NULL)
@@ -4135,10 +4135,10 @@
     = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_divide 
(GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT, 2),
                                    &send_keep_alive,
                                    n);
-  GNUNET_STATISTICS_set (stats,
-                        gettext_noop ("# bytes of payload decrypted"),
-                        size - sizeof (struct EncryptedMessage),
-                        GNUNET_NO);
+  GNUNET_STATISTICS_update (stats,
+                            gettext_noop ("# bytes of payload decrypted"),
+                            size - sizeof (struct EncryptedMessage),
+                            GNUNET_NO);
   handle_peer_status_change (n);
   update_neighbour_performance (n, ats, ats_count);
   if (GNUNET_OK != GNUNET_SERVER_mst_receive (mst, 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]