Skip to content

Commit b6f46db

Browse files
authored
MicrosoftDocs/azure-docs#29804
1 parent 6c34d07 commit b6f46db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/virtual-machines/linux/create-upload-generic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ In this case, resize the VM using either the Hyper-V Manager console or the [Res
9393
size=$(qemu-img info -f raw --output json "$rawdisk" | \
9494
gawk 'match($0, /"virtual-size": ([0-9]+),/, val) {print val[1]}')
9595
96-
rounded_size=$((($size/$MB + 1)*$MB))
96+
rounded_size=$(((($size+$MB-1)/$MB)*$MB))
9797
9898
echo "Rounded Size = $rounded_size"
9999
```

0 commit comments

Comments
 (0)