Small fixes. [rsc] --rw-rw-r-- M 775368 glenda sys 5951 Oct 3 07:24 sys/lib/dist/cmd/bargraph.c /n/sourcesdump/2005/1003/plan9/sys/lib/dist/cmd/bargraph.c:30,36 - /n/sourcesdump/2005/1004/plan9/sys/lib/dist/cmd/bargraph.c:30,36 Point ptext; vlong n, d; int last; - int lastp; + int lastp = -1; int first = 1; char backup[80]; /n/sourcesdump/2005/1003/plan9/sys/lib/dist/cmd/bargraph.c:40,46 - /n/sourcesdump/2005/1004/plan9/sys/lib/dist/cmd/bargraph.c:40,47 { int i, j; int p; - char buf[10], bar[100]; + char buf[200], bar[100], *s; + static char lastbar[100]; if(n > d || n < 0 || d <= 0) return; /n/sourcesdump/2005/1003/plan9/sys/lib/dist/cmd/bargraph.c:48,56 - /n/sourcesdump/2005/1004/plan9/sys/lib/dist/cmd/bargraph.c:49,54 i = (Dx(rbar)*n)/d; p = (n*100LL)/d; - if(lastp == p && last == i) - return; - if(textmode){ bar[0] = '|'; for(j=0; j