[Yum-devel] [UG] progress meters
Michael Stenner
mstenner at linux.duke.edu
Fri Mar 26 05:36:11 UTC 2004
On Fri, Mar 26, 2004 at 12:25:51AM -0500, seth vidal wrote:
> On Thu, 2004-03-25 at 21:59 -0700, Michael Stenner wrote:
> > files: 19/19 100% data: 6.1 MB/6.1 MB 100% time: 00:01:07/00:01:07
>
> The text interface for bittorent does something very similar. How well
> does that layout do when numbers start getting big?
Oh, I'd say it deals with big numbers pretty well :)
1024 1.0 k
4096 4.0 k
16384 16 k
65536 64 k
262144 256 k
1.04858e+06 1.0 M
4.1943e+06 4.0 M
1.67772e+07 16 M
6.71089e+07 64 M
2.68435e+08 256 M
1.07374e+09 1.0 G
4.29497e+09 4.0 G
1.71799e+10 16 G
6.87195e+10 64 G
2.74878e+11 256 G
1.09951e+12 1.0 T
4.39805e+12 4.0 T
1.75922e+13 16 T
7.03687e+13 64 T
2.81475e+14 256 T
1.1259e+15 1.0 P
4.5036e+15 4.0 P
1.80144e+16 16 P
7.20576e+16 64 P
2.8823e+17 256 P
The number + scale character is guaranteed to be 5 or less characters
wide, so it's easy to make it tidy. After peta (shown here), it still
has exa, zetta, and yotta to go :) This should be sufficient for the
next several decades :)
-Michael
--
Michael D. Stenner mstenner at ece.arizona.edu
ECE Department, the University of Arizona 520-626-1619
1230 E. Speedway Blvd., Tucson, AZ 85721-0104 ECE 524G
More information about the Yum-devel
mailing list