From bea6f95ad0bc617af48f7603a82bb682c6a4b15d Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 2 Jan 2008 22:06:24 +0000 Subject: [PATCH] fix indenting git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1261 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/pngsize.c | 8 ++++---- program/src/rrd_graph.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/program/src/pngsize.c b/program/src/pngsize.c index 59e2003f..42b849dc 100644 --- a/program/src/pngsize.c +++ b/program/src/pngsize.c @@ -35,10 +35,10 @@ int PngSize( # define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf) #endif - if (setjmp(png_jmpbuf(png_read_ptr))){ - png_destroy_read_struct(&png_read_ptr, &info_ptr, (png_infopp)NULL); - return 0; - } + if (setjmp(png_jmpbuf(png_read_ptr))) { + png_destroy_read_struct(&png_read_ptr, &info_ptr, (png_infopp) NULL); + return 0; + } png_init_io(png_read_ptr, fd); png_read_info(png_read_ptr, info_ptr); diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index fb3c7e9c..ab45aafb 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -1282,19 +1282,19 @@ int data_proc( if (im->minval > im->maxval) { if (im->minval > 0) im->minval = 0.99 * im->maxval; - else + else im->minval = 1.01 * im->maxval; } /* make sure min and max are not equal */ - if (AlmostEqual2sComplement(im->minval,im->maxval,4)) { - if (im->maxval > 0) + if (AlmostEqual2sComplement(im->minval, im->maxval, 4)) { + if (im->maxval > 0) im->maxval *= 1.01; else im->maxval *= 0.99; /* make sure min and max are not both zero */ - if (AlmostEqual2sComplement(im->maxval,0,4)) { + if (AlmostEqual2sComplement(im->maxval, 0, 4)) { im->maxval = 1.0; } } -- 2.30.2