bug fixes

pull/3677/head
2dust 2023-04-10 17:30:27 +08:00
parent ebd0f45c10
commit a1c743e59c
2 changed files with 7 additions and 9 deletions

View File

@ -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

View File

@ -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;
}