progress bar support length auto adaptive

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>