Re: small change to du, so it will accepts unit suffixes for negative thresholds

2012-03-02 Thread Alexander Best
On Fri Mar 2 12, Jason Hellenthal wrote: On Thu, Mar 01, 2012 at 11:38:22PM +, Alexander Best wrote: hi there, i just noticed that du will not accepts something like the following: du -t-500M whereas du -t500M will work. i've attached a patch, which makes unit

Re: small change to du, so it will accepts unit suffixes for negative thresholds

2012-03-02 Thread Gleb Kurtsou
On (01/03/2012 23:38), Alexander Best wrote: hi there, i just noticed that du will not accepts something like the following: du -t-500M whereas du -t500M will work. i've attached a patch, which makes unit suffixes in connection with negative thresholds possible. Good catch,

Re: small change to du, so it will accepts unit suffixes for negative thresholds

2012-03-02 Thread Jason Hellenthal
On Fri, Mar 02, 2012 at 10:33:33AM +, Alexander Best wrote: On Fri Mar 2 12, Jason Hellenthal wrote: On Thu, Mar 01, 2012 at 11:38:22PM +, Alexander Best wrote: hi there, i just noticed that du will not accepts something like the following: du -t-500M

small change to du, so it will accepts unit suffixes for negative thresholds

2012-03-01 Thread Alexander Best
hi there, i just noticed that du will not accepts something like the following: du -t-500M whereas du -t500M will work. i've attached a patch, which makes unit suffixes in connection with negative thresholds possible. cheers. alex diff --git a/usr.bin/du/du.1 b/usr.bin/du/du.1 index

Re: small change to du, so it will accepts unit suffixes for negative thresholds

2012-03-01 Thread Jason Hellenthal
On Thu, Mar 01, 2012 at 11:38:22PM +, Alexander Best wrote: hi there, i just noticed that du will not accepts something like the following: du -t-500M whereas du -t500M will work. i've attached a patch, which makes unit suffixes in connection with negative thresholds