From nobody@FreeBSD.org  Fri Apr 17 05:50:59 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C45F91065678
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Apr 2009 05:50:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id B31FC8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Apr 2009 05:50:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3H5oxsX055229
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Apr 2009 05:50:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n3H5oxXc055228;
	Fri, 17 Apr 2009 05:50:59 GMT
	(envelope-from nobody)
Message-Id: <200904170550.n3H5oxXc055228@www.freebsd.org>
Date: Fri, 17 Apr 2009 05:50:59 GMT
From: Ivan Dimitrov <ivand58@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: in the daily run output (by e-mail) Disk status report omits the unit in some cases
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         133800
>Category:       conf
>Synopsis:       in the daily run output (by e-mail) Disk status report omits the unit in some cases
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    edwin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 17 06:00:07 UTC 2009
>Closed-Date:    Fri Jun 05 08:15:59 UTC 2009
>Last-Modified:  Fri Jun 05 08:15:59 UTC 2009
>Originator:     Ivan Dimitrov
>Release:        7.0-RELEASE FreeBSD
>Organization:
.
>Environment:
7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
In the daily run output (by e-mail) the 'Disk status report' omits the 'M' unit in case of 1000 : 

/dev/mirror/gm0s1d     9.7G    7.9G    1000    89%    /usr
probly have to be
/dev/mirror/gm0s1d     9.7G    7.9G    1000M    89%    /usr
or
/dev/mirror/gm0s1d     9.7G    7.9G    1G    89%    /usr

>How-To-Repeat:
generate a report in case of 1000M free space
>Fix:
fix the formatting in the report 

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->edwin 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Jun 4 22:06:52 UTC 2009 
Responsible-Changed-Why:  
This sounds more like an issue in df than in the periodic script. 
I will see if I can figure this one out. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133800 
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Fri Jun 5 08:13:40 UTC 2009 
State-Changed-Why:  
Fixed in Revision 176954 of humanize_number(3): 

Merge changes from NetBSD on humanize_number.c, 1.8 -> 1.13 
Significant changes: 
- rev. 1.11: Use PRId64 instead of a cast to long long and %lld to print 
an int64_t. 
- rev. 1.12: Fix a bug that humanize_number() produces "1000" where it 
should be "1.0G" or "1.0M".  The bug reported by Greg Troxel. 

GNATS: Enter the reason for changing this PR's state here. 
GNATS: Lines beginning with "GNATS:" will be deleted. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133800 
>Unformatted:
