int argc,
char *argv[])
{
- long length;
char *buffer;
- char *server_url = NULL;
long i;
long filter = 0;
struct option long_options[] = {
if (!filter) {
rrdcgiDebug(0, 0);
rrdcgiArg = rrdcgiInit();
- server_url = getenv("SERVER_URL");
}
/* make sure we have one extra argument,
fprintf(stderr, "ERROR: expected a filename\n");
exit(1);
} else {
- length = readfile(argv[optind], &buffer, 1);
+ readfile(argv[optind], &buffer, 1);
}
if (rrd_test_error()) {
int leg_c = 0;
double leg_x = border;
int leg_y = 0; //im->yimg;
- int leg_y_prev = 0; // im->yimg;
int leg_cc;
double glue = 0;
int i, ii, mark = 0;
+(double)legspace[ii]
+ glue;
}
- leg_y_prev = leg_y;
if (leg_x > border || prt_fctn == 's')
leg_y += im->text_prop[TEXT_PROP_LEGEND].size * 1.8;
if (prt_fctn == 's')
int whence)
{
off_t ret = 0;
+#ifndef HAVE_MMAP
rrd_simple_file_t *rrd_simple_file;
rrd_simple_file = (rrd_simple_file_t *)rrd_file->pvt;
-
+#endif
+
#ifdef HAVE_MMAP
if (whence == SEEK_SET)
rrd_file->pos = off;
{
/* using time_t seems to help portability with 64bit oses */
time_t mday = 0, wday, mon, year = ptv->tm.tm_year;
- int tlen;
switch (sc_tokid) {
case YESTERDAY:
case NUMBER:
/* get numeric <sec since 1970>, MM/DD/[YY]YY, or DD.MM.[YY]YY
*/
- tlen = strlen(sc_token);
mon = atol(sc_token);
if (mon > 10 * 365 * 24 * 60 * 60) {
ptv->tm = *localtime(&mon);
unsigned long l, rra;
long modify;
unsigned long target_rra;
- int grow = 0, shrink = 0;
+ int shrink = 0;
char *endptr;
rrd_file_t *rrd_file, *rrd_out_file;
target_rra = strtol(argv[2], &endptr, 0);
if (!strcmp(argv[3], "GROW"))
- grow = 1;
+ shrink = 0;
else if (!strcmp(argv[3], "SHRINK"))
shrink = 1;
else {