From d5aed8831bb5574dc9df159e432d2eadce5c5624 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Thu, 8 Mar 2012 17:08:01 +0100 Subject: [PATCH] Same for graph --- src/status.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/status.c b/src/status.c index f31625e..2a9e18e 100644 --- a/src/status.c +++ b/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);