refactor: optimize surplus value calculation for plan deduction

This commit is contained in:
xboard committed 2025-07-17 11:32:34 +08:00
1 parent cd6b07e655
commit ac77a73098
3 files changed
+94 -89

No files matched your search

+10
View File
@@ -211,4 +211,14 @@ class Helper
}
return $suffix;
}
/**
* convert the transfer_enable to GB
* @param int $transfer_enable
* @return int
*/
public static function transferToGB(int $transfer_enable): int
{
return $transfer_enable / 1073741824;
}
}