mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Fix swapsize float in image install
If it undergoes float arithmetic, it must be made int again.
This commit is contained in:
parent
bda51d2106
commit
fada9336ee
@ -112,7 +112,7 @@ def install_to_disk(imgpath):
|
||||
swapsize = swapsize * 0.5
|
||||
elif swapsize >= 67108864:
|
||||
swapsize = 33554432
|
||||
swapsize = swapsize * 1024
|
||||
swapsize = int(swapsize * 1024)
|
||||
deftotsize = swapsize
|
||||
mintotsize = swapsize
|
||||
for fs in get_image_metadata('/run/imginst/sourceimage/rootimg.sfs'):
|
||||
|
Loading…
Reference in New Issue
Block a user