Add string condensing for the ETA output
authorJens Axboe <axboe@fb.com>
Mon, 16 Jun 2014 20:42:05 +0000 (14:42 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 16 Jun 2014 20:42:05 +0000 (14:42 -0600)
commit3e2e48a72851354f7d6d4da9fc83d4a6df20e955
treeccc6158502e28cf5324692d0646021ebeec53b50
parent1b4f8c7f78793428084688f27a412139b259972b
Add string condensing for the ETA output

If you run a lot of jobs, the ETA output string will become way too
long. Add some condensing so that instead of displaying:

Jobs: 80 (f=80): [rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr] [10.2% done] [2110MB/0KB/0KB /s] [540K/0/0 iops] [eta 53m:55s]

we just display

Jobs: 80 (f=80): [r(80)] [10.2% done] [2110MB/0KB/0KB /s] [540K/0/0 iops] [eta 53m:55s]

instead.

Signed-off-by: Jens Axboe <axboe@fb.com>
HOWTO
eta.c