gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r5522 - GNUnet/src/transports


From: gnunet
Subject: [GNUnet-SVN] r5522 - GNUnet/src/transports
Date: Sun, 19 Aug 2007 03:11:38 -0600 (MDT)

Author: grothoff
Date: 2007-08-19 03:11:29 -0600 (Sun, 19 Aug 2007)
New Revision: 5522

Modified:
   GNUnet/src/transports/http.c
Log:
stats

Modified: GNUnet/src/transports/http.c
===================================================================
--- GNUnet/src/transports/http.c        2007-08-19 09:10:52 UTC (rev 5521)
+++ GNUnet/src/transports/http.c        2007-08-19 09:11:29 UTC (rev 5522)
@@ -780,8 +780,7 @@
           "HTTP returns %u bytes in MHD GET handler.\n", max);
 #endif
   if (stats != NULL)
-    stats->change(stat_bytesSent,
-                 max);
+    stats->change (stat_bytesSent, max);
   return max;
 }
 #endif
@@ -927,8 +926,7 @@
       poff = 0;
       have = *upload_data_size;
       if (stats != NULL)
-       stats->change(stat_bytesReceived,
-                     have);
+        stats->change (stat_bytesReceived, have);
       *upload_data_size = 0;    /* we will always process everything */
       if ((have == 0) && (put->done == NO) && (put->ready == YES))
         {
@@ -1076,8 +1074,7 @@
       httpSession->cs.client.rpos1 = 0;
     }
   if (stats != NULL)
-    stats->change(stat_bytesReceived,
-                 size * nmemb);
+    stats->change (stat_bytesReceived, size * nmemb);
   return size * nmemb;
 }
 #endif
@@ -1103,8 +1100,7 @@
           "HTTP/CURL sends %u bytes in PUT request.\n", max);
 #endif
   if (stats != NULL)
-    stats->change(stat_bytesSent,
-                 max);
+    stats->change (stat_bytesSent, max);
   return max;
 }
 
@@ -1387,9 +1383,8 @@
               if (httpSession->cs.client.puts->done == YES)
                 signal_select ();       /* do clean up now! */
               MUTEX_UNLOCK (httpSession->lock);
-             if (stats != NULL)
-               stats->change(stat_bytesDropped,
-                             size);
+              if (stats != NULL)
+                stats->change (stat_bytesDropped, size);
 
               return NO;
             }





reply via email to

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