Re: [dev] [PATCH] [sbase] Adding human readable output to du

2014-10-18 Thread Dimitris Papastamos
On Fri, Oct 17, 2014 at 12:52:40PM -0400, Jeffrey Picard wrote: > Here’s the patch for df. It was a little more non-trivial than for du, I > moved a couple things around and also added the the -k flag. Let me know if > anything doesn’t conform to the correct style or organization idioms. Applied

Re: [dev] [PATCH] [sbase] Adding human readable output to du

2014-10-17 Thread Jeffrey Picard
On Oct 16, 2014, at 5:08 AM, Dimitris Papastamos wrote: > On Wed, Oct 15, 2014 at 08:35:46PM -0400, Jeffrey Picard wrote: >> Hey all, >> >> I was poking around at du recently and noticed it doesn’t support human >> readable output. This is pretty easy to add however, at least in a simple >> f

Re: [dev] [PATCH] [sbase] Adding human readable output to du

2014-10-16 Thread Dimitris Papastamos
On Wed, Oct 15, 2014 at 08:35:46PM -0400, Jeffrey Picard wrote: > Hey all, > > I was poking around at du recently and noticed it doesn’t support human > readable output. This is pretty easy to add however, at least in a simple > form which just rounds the number of bytes down to the nearest incr

[dev] [PATCH] [sbase] Adding human readable output to du

2014-10-15 Thread Jeffrey Picard
Hey all, I was poking around at du recently and noticed it doesn’t support human readable output. This is pretty easy to add however, at least in a simple form which just rounds the number of bytes down to the nearest increment of the highest power of 1024 that’s appropriate. If there’s interes