string formatting
This commit is contained in:
parent
de6b0917e8
commit
59050e0665
@ -61,7 +61,7 @@ class SwapModule(AbstractModule):
|
|||||||
print("")
|
print("")
|
||||||
print("Swap already installed! You can resize it!")
|
print("Swap already installed! You can resize it!")
|
||||||
print("Curr. swap size: {}b".format(swap_size))
|
print("Curr. swap size: {}b".format(swap_size))
|
||||||
resize = input("How big should your swap become(numbers in Gigabyte)? ")
|
resize = input("How big should your swap become (numbers in Gigabyte)? ")
|
||||||
resize_swapfile = "sudo swapoff /swapfile && " + \
|
resize_swapfile = "sudo swapoff /swapfile && " + \
|
||||||
"sudo fallocate -l {}G /swapfile && ".format(resize) + \
|
"sudo fallocate -l {}G /swapfile && ".format(resize) + \
|
||||||
"sudo mkswap /swapfile && " + \
|
"sudo mkswap /swapfile && " + \
|
||||||
|
Loading…
Reference in New Issue
Block a user