Kilo abbreviation is a small k (PR 18408).

This commit is contained in:
wiz 2002-09-26 15:06:47 +00:00
parent 15223283f6
commit 079c182094
3 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: humanize_number.3,v 1.1 2002/08/22 17:24:09 abs Exp $
.\" $NetBSD: humanize_number.3,v 1.2 2002/09/26 15:07:59 wiz Exp $
.\"
.\" Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -73,7 +73,7 @@ with the appropriate SI designator.
The prefixes are:
.Bl -column "Prefix" "Description" "Multiplier" -offset indent
.It Sy "Prefix" Ta Sy "Description" Ta Sy "Multiplier"
.It K kilo 1024
.It k kilo 1024
.It M mega 1048576
.It G giga 1073741824
.It T tera 1099511627776

View File

@ -1,4 +1,4 @@
/* $NetBSD: humanize_number.c,v 1.1 2002/08/22 17:24:10 abs Exp $ */
/* $NetBSD: humanize_number.c,v 1.2 2002/09/26 15:08:00 wiz Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
#ifndef __lint
__COPYRIGHT("@(#) Copyright (c) 2002\n\
The NetBSD Foundation, inc. All rights reserved.\n");
__RCSID("$NetBSD: humanize_number.c,v 1.1 2002/08/22 17:24:10 abs Exp $");
__RCSID("$NetBSD: humanize_number.c,v 1.2 2002/09/26 15:08:00 wiz Exp $");
#endif /* !__lint */
#include <assert.h>
@ -55,7 +55,7 @@ int
humanize_number(char *buf, size_t len, int64_t bytes,
const char *suffix, int scale, int flags)
{
static const char prefixes[] = " KMGTPE";
static const char prefixes[] = " kMGTPE";
int i, r;
int64_t divisor, max, s1, s2, sign;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_subr.c,v 1.89 2002/09/23 03:37:59 simonb Exp $ */
/* $NetBSD: kern_subr.c,v 1.90 2002/09/26 15:06:47 wiz Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
@ -90,7 +90,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.89 2002/09/23 03:37:59 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.90 2002/09/26 15:06:47 wiz Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@ -1160,8 +1160,8 @@ parsedisk(str, len, defpart, devp)
* bytes result
* ----- ------
* 99999 `99999 B'
* 100000 `97 KB'
* 66715648 `65152 KB'
* 100000 `97 kB'
* 66715648 `65152 kB'
* 252215296 `240 MB'
*/
int
@ -1172,8 +1172,8 @@ humanize_number(buf, len, bytes, suffix, divisor)
const char *suffix;
int divisor;
{
/* prefixes are: (none), Kilo, Mega, Giga, Tera, Peta, Exa */
static const char prefixes[] = " KMGTPE";
/* prefixes are: (none), kilo, Mega, Giga, Tera, Peta, Exa */
static const char prefixes[] = " kMGTPE";
int r;
u_int64_t max;