Remove CString::ToKBytes()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1039 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-05-05 21:39:09 +00:00
parent 4ada00f542
commit 6857394d71
4 changed files with 6 additions and 11 deletions

View File

@@ -1079,7 +1079,7 @@ void CClient::UserCommand(const CString& sLine) {
Table.AddRow();
Table.SetCell("Type", "Sending");
Table.SetCell("State", CString::ToPercent(pSock->GetProgress()));
Table.SetCell("Speed", CString::ToKBytes(pSock->GetAvgWrite() / 1000.0));
Table.SetCell("Speed", CString((int)(pSock->GetAvgWrite() / 1024.0)) + " KiB/s");
Table.SetCell("Nick", pSock->GetRemoteNick());
Table.SetCell("IP", pSock->GetRemoteIP());
Table.SetCell("File", pSock->GetFileName());
@@ -1089,7 +1089,7 @@ void CClient::UserCommand(const CString& sLine) {
Table.AddRow();
Table.SetCell("Type", "Getting");
Table.SetCell("State", CString::ToPercent(pSock->GetProgress()));
Table.SetCell("Speed", CString::ToKBytes(pSock->GetAvgRead() / 1000.0));
Table.SetCell("Speed", CString((int)(pSock->GetAvgRead() / 1024.0)) + " KiB/s");
Table.SetCell("Nick", pSock->GetRemoteNick());
Table.SetCell("IP", pSock->GetRemoteIP());
Table.SetCell("File", pSock->GetFileName());