universal7885: parts: Swap: Append M

This commit is contained in:
Soo-Hwan Na 2022-04-18 17:57:18 +09:00 committed by roynatech2544
commit b6f9fa84e2

View file

@ -29,7 +29,7 @@ Return<void> SwapOnData::setSwapSize(int32_t size) {
Return<void> SwapOnData::setSwapOn(){
string cmd = string("dd if=/dev/zero of=") + string(SWAP_PATH) + string(" bs=") + std::to_string(mSwapSize)
+ " count=10";
+ "M count=10";
system(cmd.c_str());
cmd = string("mkswap ") + string(SWAP_PATH);
system(cmd.c_str());