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

View File

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