fix: fix return type in transferToGB method

This commit is contained in:
xboard 2025-08-20 04:13:52 +08:00
parent f53c064f76
commit c8f8667f82

View File

@ -205,10 +205,10 @@ class Helper
/** /**
* convert the transfer_enable to GB * convert the transfer_enable to GB
* @param int $transfer_enable * @param float $transfer_enable
* @return int * @return float
*/ */
public static function transferToGB(int $transfer_enable): int public static function transferToGB(float $transfer_enable): float
{ {
return $transfer_enable / 1073741824; return $transfer_enable / 1073741824;
} }