summaryrefslogtreecommitdiff
path: root/sys/src/cmd/stats.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-06-14 01:12:46 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2018-06-14 01:12:46 +0200
commit5c87dfb9d5db3b6c93c30910f72d00bb1e5e326e (patch)
treeb34a02d302a0b3cb61d6a2b0255752f1a8315c0e /sys/src/cmd/stats.c
parent4d496b3c7ac69d094e4beb02e6426f47bc357e9a (diff)
parenta9a92cab485e365d9f9d115a9812181a44ce31e3 (diff)
merge
Diffstat (limited to 'sys/src/cmd/stats.c')
-rw-r--r--sys/src/cmd/stats.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/cmd/stats.c b/sys/src/cmd/stats.c
index 8a9f926a6..654c76268 100644
--- a/sys/src/cmd/stats.c
+++ b/sys/src/cmd/stats.c
@@ -1131,7 +1131,7 @@ resize(void)
/* label right, if requested */
if(ylabels && dy>Nlab*(font->height+1)){
wid = labelwidth();
- if(wid < (maxx-startx)-30){
+ if(wid < dx-10){
/* else there's not enough room */
maxx -= 1+Lx+wid;
draw(screen, Rect(maxx, starty, maxx+1, screen->r.max.y), display->black, nil, ZP);
@@ -1156,9 +1156,9 @@ resize(void)
/* create graphs */
for(i=0; i<nmach; i++){
- machr = Rect(startx+i*dx, starty, maxx, screen->r.max.y);
- if(i < nmach-1)
- machr.max.x = startx+(i+1)*dx - 1;
+ machr = Rect(startx+i*dx, starty, startx+(i+1)*dx - 1, screen->r.max.y);
+ if(i == nmach-1)
+ machr.max.x = maxx;
y = starty;
for(j=0; j<ngraph; j++, y+=dy){
g = &graph[i*ngraph+j];