tjohansen14 / diskscrub

Automatically exported from code.google.com/p/diskscrub
GNU General Public License v2.0
0 stars 0 forks source link

imprecise disk size display #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Date: Mon, 18 Jun 2012 20:11:27 -0700
From: "H. Peter Anvin" <hpa@zytor.com>
To: Jim Garlick <garlick.jim@gmail.com>
Subject: Amusing message...
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430
        Thunderbird/12.0.1

I got this using scrub on a 2 TB disk today:

scrub: scrubbing /dev/sdg 2000398934016 bytes (~1TB)

Might be a little *too* approximate...

        -hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.

Original issue reported on code.google.com by garlick....@gmail.com on 19 Jun 2012 at 3:47

GoogleCodeExporter commented 8 years ago
Date: Mon, 18 Jun 2012 20:24:04 -0700
From: "H. Peter Anvin" <hpa@zytor.com>
To: Jim Garlick <garlick.jim@gmail.com>
Subject: Re: Amusing message...
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430
        Thunderbird/12.0.1

On 06/18/2012 08:21 PM, Jim Garlick wrote:
> It would be funnier if I hadn't written that code. :-)
> Jim

The easy fix is probably to do a bigger cutoff, i.e. don't cut over
until 10 (so show 2-4 digits); one could also do floating-point numbers
but those wouldn't parse with str2size() which might confuse people...

        -hpa

Original comment by garlick....@gmail.com on 19 Jun 2012 at 3:52

GoogleCodeExporter commented 8 years ago
OK, I did that.  Reasonable.
Fix will be in scrub 2.5.2

Original comment by garlick....@gmail.com on 20 Jun 2012 at 9:51