From b98ae214b2d5864d6aeb74a153f31205e2fc9433 Mon Sep 17 00:00:00 2001 From: dgw Date: Mon, 10 Feb 2014 21:52:18 +0400 Subject: [PATCH] Add traffic stats to listsockets webadmin table Table is not displaying, however. Odd. --- modules/listsockets.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/listsockets.cpp b/modules/listsockets.cpp index 8892e7fa..93bb2177 100644 --- a/modules/listsockets.cpp +++ b/modules/listsockets.cpp @@ -118,7 +118,8 @@ public: Row["SSL"] = pSocket->GetSSL() ? "Yes" : "No"; Row["Local"] = GetLocalHost(pSocket, true); Row["Remote"] = GetRemoteHost(pSocket, true); - // TODO: Traffic stats + Row["In"] = CString::ToByteStr(pSocket->GetBytesRead()); + Row["Out"] = CString::ToByteStr(pSocket->GetBytesWritten()); } return true;