From 629ba5427bd755fb5bf51b32a6f54eab4a79931b Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 7 Apr 2009 07:20:18 +0000 Subject: [PATCH] fix lazy fix ... syntax error git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1775 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 2ad2cb1..0d880ef 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -3048,7 +3048,7 @@ int graph_paint( if (i < 0) return -1; - if ((i == 0)) + if (i == 0) return 0; /************************************************************** @@ -3076,9 +3076,8 @@ int graph_paint( grinfo_push(im, sprintf_alloc("graph_end"), RD_I_CNT, info); /* if we want and can be lazy ... quit now */ - if (lazy){ - return 0 - }; + if (lazy) + return 0; /* get actual drawing data and find min and max values */ if (data_proc(im) == -1) -- 2.30.2