mirror of https://github.com/2dust/v2rayN
parent
2861bff5a0
commit
fe015b0227
|
@ -57,14 +57,15 @@ namespace v2rayN.Forms
|
||||||
{
|
{
|
||||||
double up_amount = 0.0, down_amount;
|
double up_amount = 0.0, down_amount;
|
||||||
string up_unit = "", down_unit;
|
string up_unit = "", down_unit;
|
||||||
|
|
||||||
|
up /= (ulong)(config.statisticsFreshRate / 1000f);
|
||||||
|
down /= (ulong)(config.statisticsFreshRate / 1000f);
|
||||||
|
|
||||||
Utils.ToHumanReadable(up, out up_amount, out up_unit);
|
Utils.ToHumanReadable(up, out up_amount, out up_unit);
|
||||||
Utils.ToHumanReadable(down, out down_amount, out down_unit);
|
Utils.ToHumanReadable(down, out down_amount, out down_unit);
|
||||||
up_unit += "/s";
|
up_unit += "/s";
|
||||||
down_unit += "/s";
|
down_unit += "/s";
|
||||||
|
|
||||||
up_amount /= config.statisticsFreshRate / 1000f;
|
|
||||||
down_amount /= config.statisticsFreshRate / 1000f;
|
|
||||||
|
|
||||||
toolSslBlank4.Text = string.Format(
|
toolSslBlank4.Text = string.Format(
|
||||||
"{4}: {0:f2} {1} | {5}: {2:f2} {3}",
|
"{4}: {0:f2} {1} | {5}: {2:f2} {3}",
|
||||||
up_amount,
|
up_amount,
|
||||||
|
|
Loading…
Reference in New Issue