X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_xport.c;h=2dbc99d9479baea95493c5e87d0692fae6c0ed29;hp=95bf35b67fb431d6fa259df48c9eb72c99730461;hb=990fcfb7eec407edfe504f42760bae204e1c074d;hpb=0209ff81818995fcd2e2b7080c0ca504fa14d949 diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 95bf35b..2dbc99d 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.0.37 Copyright Tobias Oetiker, 1997 - 2000 + * RRDtool 1.2rc9 Copyright by Tobi Oetiker, 1997-2005 **************************************************************************** * rrd_xport.c export RRD data ****************************************************************************/ @@ -10,7 +10,7 @@ #include "rrd_graph.h" #include "rrd_xport.h" -#ifdef WIN32 +#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) #include #include #endif @@ -116,7 +116,8 @@ rrd_xport(int argc, char **argv, int *xsize, im.start = start_tmp; im.end = end_tmp; - + im.step = max((long)im.step, (im.end-im.start)/im.xsize); + rrd_graph_script(argc,argv,&im,0); if (rrd_test_error()) { im_free(&im);