Parcourir la source

Same for graph

Martin Duquesnoy il y a 12 ans
Parent
commit
d5aed8831b
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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);