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