mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-15 20:50:51 +08:00
refactor: optimize surplus value calculation for plan deduction
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user