mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-24 20:17:32 +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
|
* 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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user