tload: remove unnecessary goto
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
8f7eefc9c8
commit
2b99362139
10
tload.c
10
tload.c
@ -151,17 +151,21 @@ int main(int argc, char **argv)
|
||||
|
||||
loadavg(&av[0], &av[1], &av[2]);
|
||||
|
||||
repeat:
|
||||
while (1) {
|
||||
lines = av[0] * scale_fact;
|
||||
row = nrows - 1;
|
||||
|
||||
while (--lines >= 0) {
|
||||
while (0 <= --lines) {
|
||||
*(screen + row * ncols + col) = '*';
|
||||
if (--row < 0) {
|
||||
scale_fact /= 2.0;
|
||||
goto repeat;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (0 < row)
|
||||
break;
|
||||
}
|
||||
|
||||
while (row >= 0)
|
||||
*(screen + row-- * ncols + col) = ' ';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user