Skip to content
Browse files

Add traffic stats to listsockets webadmin table

Table is not displaying, however. Odd.
  • Loading branch information...
1 parent f244d7a commit b98ae214b2d5864d6aeb74a153f31205e2fc9433 @dgw dgw committed Feb 10, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 modules/listsockets.cpp
View
3 modules/listsockets.cpp
@@ -118,7 +118,8 @@ class CListSockets : public CModule {
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;

0 comments on commit b98ae21

Please sign in to comment.
Something went wrong with that request. Please try again.