소스 검색

Same for graph

Martin Duquesnoy 12 년 전
부모
커밋
d5aed8831b
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/status.c

+ 3 - 0
src/status.c

@@ -110,6 +110,9 @@ status_graph_process(struct status_ctx *ctx, struct status_seq *sq, char *name)
                return;
           }
 
+     if(sq->data[1] > sq->data[2])
+          sq->data[1] = sq->data[2];
+
      /* No? Make a cache for it */
      gc = xcalloc(1, sizeof(struct status_gcache));
      gc->name = xstrdup(name);