Module Name: src Committed By: martin Date: Mon Jul 15 17:17:59 UTC 2019
Modified Files: src/usr.sbin/sysinst: partman.c Log Message: Fix partition size display To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/usr.sbin/sysinst/partman.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/sysinst/partman.c diff -u src/usr.sbin/sysinst/partman.c:1.38 src/usr.sbin/sysinst/partman.c:1.39 --- src/usr.sbin/sysinst/partman.c:1.38 Sun Jul 14 16:12:02 2019 +++ src/usr.sbin/sysinst/partman.c Mon Jul 15 17:17:59 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: partman.c,v 1.38 2019/07/14 16:12:02 martin Exp $ */ +/* $NetBSD: partman.c,v 1.39 2019/07/15 17:17:59 martin Exp $ */ /* * Copyright 2012 Eugene Lozovoy @@ -457,7 +457,8 @@ pm_fmt_disk_line(WINDOW *w, const char * wprintw(w, " %-56s (%s)", line, no_size_display); } else { humanize_number(human, sizeof(human), - total, "", HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL); + total * 512, "", + HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL); wprintw(w, " %-56s %s", line, human); } }