diff options
author | Chris Wilson <chris+github@qwirx.com> | 2011-08-27 14:04:34 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2011-08-27 14:04:34 +0000 |
commit | 50aac86024fae12072a240e6b952c9bb11437956 (patch) | |
tree | dcddbe3fc8177bedbf55d370cb37117d06737a4b | |
parent | 0f7672aefadda3582b82a5b88adda473fb647b3e (diff) |
Log net traffic (in-out) in bbstored, as requested by Pete Jalajas.
-rw-r--r-- | bin/bbstored/BackupStoreDaemon.cpp | 1 |
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())); } |