Java Code Examples for net.fs.utils.Tools#getSizeStringKB()
The following examples show how to use
net.fs.utils.Tools#getSizeStringKB() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ClientUI.java From NSS with Apache License 2.0 | 5 votes |
public void updateUISpeed(int conn, int downloadSpeed, int uploadSpeed) { String string = " 下载:" + Tools.getSizeStringKB(downloadSpeed) + "/s" + " 上传:" + Tools.getSizeStringKB(uploadSpeed) + "/s"; if (downloadSpeedField != null) { downloadSpeedField.setText(string); } }
Example 2
Source File: ClientUI.java From finalspeed-91yun with GNU General Public License v2.0 | 5 votes |
public void updateUISpeed(int conn, int downloadSpeed, int uploadSpeed) { String string = " 下载:" + Tools.getSizeStringKB(downloadSpeed) + "/s" + " 上传:" + Tools.getSizeStringKB(uploadSpeed) + "/s"; if (downloadSpeedField != null) { downloadSpeedField.setText(string); } }
Example 3
Source File: ClientUI.java From finalspeed with GNU General Public License v2.0 | 5 votes |
public void updateUISpeed(int conn, int downloadSpeed, int uploadSpeed) { String string = " 下载:" + Tools.getSizeStringKB(downloadSpeed) + "/s" + " 上传:" + Tools.getSizeStringKB(uploadSpeed) + "/s"; if (downloadSpeedField != null) { downloadSpeedField.setText(string); } }