------------------------------------------------------------
revno: 2597
committer: eMTee <[email protected]>
branch nick: dcplusplus
timestamp: Sat 2011-08-20 19:56:47 +0200
message:
  Users frame formatting
modified:
  win32/UsersFrame.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'win32/UsersFrame.cpp'
--- win32/UsersFrame.cpp	2011-07-03 17:15:51 +0000
+++ win32/UsersFrame.cpp	2011-08-20 17:56:47 +0000
@@ -69,6 +69,10 @@
 	return Text::toT(Util::formatBytes(val));
 }
 
+static tstring formatSpeed(const string& val) {
+	return Text::toT(Util::formatBytes(val) + "/s");
+}
+
 static const FieldName fields[] =
 {
 	{ "NI", T_("Nick"), &Text::toT },
@@ -77,8 +81,8 @@
 	{ "EM", T_("E-Mail"), &Text::toT },
 	{ "SS", T_("Shared bytes"), &formatBytes },
 	{ "SF", T_("Shared files"), &Text::toT },
-	{ "US", T_("Upload speed"), &Text::toT },
-	{ "DS", T_("Download speed"), &Text::toT },
+	{ "US", T_("Upload speed"), &formatSpeed },
+	{ "DS", T_("Download speed"), &formatSpeed },
 	{ "SL", T_("Total slots"), &Text::toT },
 	{ "FS", T_("Free slots"), &Text::toT },
 	{ "HN", T_("Hubs (normal)"), &Text::toT },
@@ -90,9 +94,12 @@
 	{ "U6", T_("Search port (v6)"), &Text::toT },
 	{ "SU", T_("Features"), &Text::toT },
 	{ "VE", T_("Application version"), &Text::toT },
-    { "AP", T_("Application"), &Text::toT },
+	{ "AP", T_("Application"), &Text::toT },
 	{ "ID", T_("CID"), &Text::toT },
 	{ "KP", T_("TLS Keyprint"), &Text::toT },
+	{ "CO", T_("Connection"), &Text::toT },
+	{ "CT", T_("Client type"), &Text::toT },
+	{ "TA", T_("Tag"), &Text::toT },
 
 	{ "", _T(""), 0 }
 };

_______________________________________________
Mailing list: https://launchpad.net/~linuxdcpp-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~linuxdcpp-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to