Contrained actual prefix len
This commit is contained in:
		| @@ -43,7 +43,7 @@ void term::progress(int prefixlen, | |||||||
|     int steps = round(cur * maxsteps / total); |     int steps = round(cur * maxsteps / total); | ||||||
|     int perc = round(100 * cur / total); |     int perc = round(100 * cur / total); | ||||||
|     int fill_len = barwidth - steps / 8; |     int fill_len = barwidth - steps / 8; | ||||||
|     *_out << '\r' << std::setw(prefixlen) << prefix << ' '; |     *_out << '\r' << std::setw(prefixlen) << prefix.substr(0, prefixlen) << ' '; | ||||||
|     grayf(8); |     grayf(8); | ||||||
|     for (int i = 0; i < steps / 8; ++i) { |     for (int i = 0; i < steps / 8; ++i) { | ||||||
|         *_out << bar[7]; |         *_out << bar[7]; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Bob Polis
					Bob Polis