Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst Fix partition size display



details:   https://anonhg.NetBSD.org/src/rev/3a2b45a78be3
branches:  trunk
changeset: 457731:3a2b45a78be3
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jul 15 17:17:59 2019 +0000

description:
Fix partition size display

diffstat:

 usr.sbin/sysinst/partman.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 1fac91ad9f30 -r 3a2b45a78be3 usr.sbin/sysinst/partman.c
--- a/usr.sbin/sysinst/partman.c        Mon Jul 15 11:46:53 2019 +0000
+++ b/usr.sbin/sysinst/partman.c        Mon Jul 15 17:17:59 2019 +0000
@@ -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 @@
                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);
        }
 }



Home | Main Index | Thread Index | Old Index