summaryrefslogtreecommitdiffstats
path: root/sbin/disklabel/editor.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2009-04-25 20:56:39 +0000
committermiod <miod@openbsd.org>2009-04-25 20:56:39 +0000
commitf07924f1dc29c50aea8e2cdb738c42e238b9a1d6 (patch)
tree92db09c64706095ad45de4672ba362ff4854b710 /sbin/disklabel/editor.c
parentprevious was slightly wrong - revert to full product name; (diff)
downloadwireguard-openbsd-f07924f1dc29c50aea8e2cdb738c42e238b9a1d6.tar.xz
wireguard-openbsd-f07924f1dc29c50aea8e2cdb738c42e238b9a1d6.zip
stdsize() used to round the sector count to a multiple of 10**3, and
then would multiply by 512 and print the result. This means that, when printing a partition size, the installer would print sizes rounded to multiples of 512MB for partitions shorter than a few GB, for example. Change this to round up one less 10**3 unit, then multiply by 512, then complete the rounding. ok krw@ long ago.
Diffstat (limited to 'sbin/disklabel/editor.c')
0 files changed, 0 insertions, 0 deletions