diff libgaim/ft.h @ 15218:ec96d6d2fa6d

[gaim-migrate @ 18008] Patch from Graham Booker to slowly scale up the size of our read or write buffer when transfer files over fast networks. This should hopefully reduce CPU load a tiny bit when transfer large files over fast connections. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 15 Dec 2006 08:39:53 +0000
parents 4b2ac755d565
children 5176a9f30ba3
line wrap: on
line diff
--- a/libgaim/ft.h	Fri Dec 15 08:23:28 2006 +0000
+++ b/libgaim/ft.h	Fri Dec 15 08:39:53 2006 +0000
@@ -84,7 +84,7 @@
  */
 struct _GaimXfer
 {
-	guint ref;                    /**< The reference count.                 */
+	guint ref;                    /**< The reference count.                */
 	GaimXferType type;            /**< The type of transfer.               */
 
 	GaimAccount *account;         /**< The account.                        */
@@ -111,6 +111,9 @@
 	time_t start_time;            /**< When the transfer of data began.    */
 	time_t end_time;              /**< When the transfer of data ended.    */
 
+	size_t current_buffer_size;   /**< This gradually increases for fast
+	                                   network connections. */
+
 	GaimXferStatusType status;    /**< File Transfer's status.             */
 
 	/* I/O operations. */