Skip to content

Commit 2b1928c

Browse files
authored
Merge pull request #100987 from MicahMcKittrick-MSFT/patch-308
MicrosoftDocs/azure-docs#29804
2 parents aafb994 + b6f46db commit 2b1928c

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)