mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 20:15:32 -04:00
universal7885: parts: Swap: Append M
This commit is contained in:
parent
f5d3e25c02
commit
b6f9fa84e2
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ Return<void> SwapOnData::setSwapSize(int32_t size) {
|
||||||
|
|
||||||
Return<void> SwapOnData::setSwapOn(){
|
Return<void> SwapOnData::setSwapOn(){
|
||||||
string cmd = string("dd if=/dev/zero of=") + string(SWAP_PATH) + string(" bs=") + std::to_string(mSwapSize)
|
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());
|
system(cmd.c_str());
|
||||||
cmd = string("mkswap ") + string(SWAP_PATH);
|
cmd = string("mkswap ") + string(SWAP_PATH);
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue