diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-08-30 18:31:54 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-08-30 18:31:54 +0000 |
commit | 27bb0b1740173c7c6b7b313678abf3760f94402b (patch) | |
tree | a216fb15fb80b683cf12d236c00e177637c00255 /bin | |
parent | 55c923c1ce31cb02aec672b6f78098cfdecafa40 (diff) |
* bin/bbstored/BackupStoreDaemon.cpp
- Cast off_t to long long, in case they differ in size (e.g. Win32)
Diffstat (limited to 'bin')
-rw-r--r-- | bin/bbstored/BackupStoreDaemon.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/bbstored/BackupStoreDaemon.cpp b/bin/bbstored/BackupStoreDaemon.cpp index fc09b624..ce7263da 100644 --- a/bin/bbstored/BackupStoreDaemon.cpp +++ b/bin/bbstored/BackupStoreDaemon.cpp @@ -300,6 +300,8 @@ void BackupStoreDaemon::LogConnectionStats(const char *commonName, // 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()); } |