[Box Backup-dev] COMMIT r854 - box/trunk/bin/bbstored

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Thu Aug 31 09:41:58 BST 2006


Author: chris
Date: 2006-08-31 09:41:58 +0100 (Thu, 31 Aug 2006)
New Revision: 854

Modified:
   box/trunk/bin/bbstored/BackupStoreDaemon.cpp
Log:
* bin/bbstored/BackupStoreDaemon.cpp
- Cast off_t to long long, in case they differ in size (e.g. Win32)


Modified: box/trunk/bin/bbstored/BackupStoreDaemon.cpp
===================================================================
--- box/trunk/bin/bbstored/BackupStoreDaemon.cpp	2006-08-31 08:41:33 UTC (rev 853)
+++ box/trunk/bin/bbstored/BackupStoreDaemon.cpp	2006-08-31 08:41:58 UTC (rev 854)
@@ -300,6 +300,8 @@
 	// Log the amount of data transferred
 	::syslog(LOG_INFO, "Connection statistics for %s: "
 			"IN=%lld OUT=%lld TOTAL=%lld\n", commonName,
-			s.GetBytesRead(), s.GetBytesWritten(),
-			s.GetBytesRead() + s.GetBytesWritten());
+			(long long)s.GetBytesRead(), 
+			(long long)s.GetBytesWritten(),
+			(long long)s.GetBytesRead() + 
+			(long long)s.GetBytesWritten());
 }




More information about the Boxbackup-dev mailing list