summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-08-27 14:04:34 +0000
committerChris Wilson <chris+github@qwirx.com>2011-08-27 14:04:34 +0000
commit50aac86024fae12072a240e6b952c9bb11437956 (patch)
treedcddbe3fc8177bedbf55d370cb37117d06737a4b /bin
parent0f7672aefadda3582b82a5b88adda473fb647b3e (diff)
Log net traffic (in-out) in bbstored, as requested by Pete Jalajas.
Diffstat (limited to 'bin')
-rw-r--r--bin/bbstored/BackupStoreDaemon.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/bbstored/BackupStoreDaemon.cpp b/bin/bbstored/BackupStoreDaemon.cpp
index 4de0a078..446dbfb7 100644
--- a/bin/bbstored/BackupStoreDaemon.cpp
+++ b/bin/bbstored/BackupStoreDaemon.cpp
@@ -367,5 +367,6 @@ void BackupStoreDaemon::LogConnectionStats(const char *commonName,
BOX_NOTICE("Connection statistics for " << commonName << ":"
" IN=" << s.GetBytesRead() <<
" OUT=" << s.GetBytesWritten() <<
+ " NET_IN=" << (s.GetBytesRead() - s.GetBytesWritten()) <<
" TOTAL=" << (s.GetBytesRead() + s.GetBytesWritten()));
}