mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-14 11:20:53 +08:00
fix: fix return type in transferToGB method
This commit is contained in:
@@ -205,10 +205,10 @@ class Helper
|
||||
|
||||
/**
|
||||
* convert the transfer_enable to GB
|
||||
* @param int $transfer_enable
|
||||
* @return int
|
||||
* @param float $transfer_enable
|
||||
* @return float
|
||||
*/
|
||||
public static function transferToGB(int $transfer_enable): int
|
||||
public static function transferToGB(float $transfer_enable): float
|
||||
{
|
||||
return $transfer_enable / 1073741824;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user