[libcalamares] Add BytesToGiB (extends BytesToMiB)
This commit is contained in:
parent
acf3dbcdcb
commit
962776804c
@ -78,6 +78,11 @@ constexpr int BytesToMiB( qint64 b )
|
||||
return int( b / 1024 / 1024 );
|
||||
}
|
||||
|
||||
constexpr int BytesToGiB( qint64 b )
|
||||
{
|
||||
return int( b / 1024 / 1024 / 1024 );
|
||||
}
|
||||
|
||||
constexpr qint64 alignBytesToBlockSize( qint64 bytes, qint64 blocksize )
|
||||
{
|
||||
qint64 blocks = bytes / blocksize;
|
||||
|
Loading…
Reference in New Issue
Block a user