From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id p7P52qYb162000 for ; Thu, 25 Aug 2011 00:02:52 -0500 Date: Thu, 25 Aug 2011 01:02:38 -0400 From: Christoph Hellwig Subject: Re: [PATCH 3/3] xfsprogs: xfs_quota: improve calculation for percentage display Message-ID: <20110825050238.GD23901@infradead.org> References: <5f21f0e86c8400108a701084a85ebcd97694a074.1314222483.git.aelder@sgi.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5f21f0e86c8400108a701084a85ebcd97694a074.1314222483.git.aelder@sgi.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Alex Elder Cc: xfs@oss.sgi.com On Wed, Aug 24, 2011 at 04:53:43PM -0500, Alex Elder wrote: > The pct_to_string() function determines the percentage it produces > in a strange way. Simplify the function, and make it return the > simple rounded percentage value. Handle the case of an error > return from snprintf() as well. Looks fine, Reviewed-by: Christoph Hellwig _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs