mirror of https://github.com/2dust/v2rayN
bug fixes
parent
ebd0f45c10
commit
a1c743e59c
|
@ -871,8 +871,7 @@ namespace v2rayN.Handler
|
|||
return false;
|
||||
}
|
||||
|
||||
return o.configVersion == n.configVersion
|
||||
&& o.configType == n.configType
|
||||
return o.configType == n.configType
|
||||
&& o.address == n.address
|
||||
&& o.port == n.port
|
||||
&& o.id == n.id
|
||||
|
|
|
@ -367,23 +367,22 @@ namespace v2rayN
|
|||
if (GBs > 0)
|
||||
{
|
||||
// multi GB
|
||||
/*ulong TBs = GBs / factor;
|
||||
long TBs = GBs / factor;
|
||||
if (TBs > 0)
|
||||
{
|
||||
// 你是魔鬼吗? 用这么多流量
|
||||
result = TBs + GBs % factor / (factor + 0.0);
|
||||
result = TBs + (GBs % factor / (factor + 0.0));
|
||||
unit = "TB";
|
||||
return;
|
||||
}*/
|
||||
result = GBs + MBs % factor / (factor + 0.0);
|
||||
}
|
||||
result = GBs + (MBs % factor / (factor + 0.0));
|
||||
unit = "GB";
|
||||
return;
|
||||
}
|
||||
result = MBs + KBs % factor / (factor + 0.0);
|
||||
result = MBs + (KBs % factor / (factor + 0.0));
|
||||
unit = "MB";
|
||||
return;
|
||||
}
|
||||
result = KBs + amount % factor / (factor + 0.0);
|
||||
result = KBs + (amount % factor / (factor + 0.0));
|
||||
unit = "KB";
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue