gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r6153 - GNUnet/src/server


From: gnunet
Subject: [GNUnet-SVN] r6153 - GNUnet/src/server
Date: Mon, 4 Feb 2008 10:14:08 -0700 (MST)

Author: grothoff
Date: 2008-02-04 10:14:05 -0700 (Mon, 04 Feb 2008)
New Revision: 6153

Modified:
   GNUnet/src/server/connection.c
Log:
reverse logic

Modified: GNUnet/src/server/connection.c
===================================================================
--- GNUnet/src/server/connection.c      2008-02-04 16:25:41 UTC (rev 6152)
+++ GNUnet/src/server/connection.c      2008-02-04 17:14:05 UTC (rev 6153)
@@ -2807,11 +2807,11 @@
               GNUNET_free (tmp);
               continue;         /* no need to call 'send buffer' */
             case STAT_UP:
-             if ( (root->time_established > now) &&
+             if ( (root->time_established < now) &&
                   (root->time_established != 0) )
                {
                  connection_count++;
-                 total_connection_lifetime += root->time_established - now;
+                 total_connection_lifetime += now - root->time_established;
                }
               updateCurBPS (root);
               total_allowed_sent += root->max_bpm;





reply via email to

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