From faa7334debe6471f6b7fc1768d688223bbb3497b 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/program@1261 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/pngsize.c | 8 ++++---- src/rrd_graph.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pngsize.c b/src/pngsize.c index 59e2003..42b849d 100644 --- a/src/pngsize.c +++ b/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/src/rrd_graph.c b/src/rrd_graph.c index fb3c7e9..ab45aaf 100644 --- a/src/rrd_graph.c +++ b/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