author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 27 Nov 2010 10:46:11 +0000 (11:46 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 27 Nov 2010 10:46:11 +0000 (11:46 +0100) |
Conflicts:
src/utils_rrdcreate.c
src/utils_rrdcreate.c
1 | 2 | |||
---|---|---|---|---|
src/collectd.conf.pod | patch | | diff1 | | diff2 | | blob | history |
src/netapp.c | patch | | diff1 | | diff2 | | blob | history |
src/swap.c | patch | | diff1 | | diff2 | | blob | history |
src/utils_rrdcreate.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc src/collectd.conf.pod
Simple merge
diff --cc src/netapp.c
Simple merge
diff --cc src/swap.c
Simple merge
diff --cc src/utils_rrdcreate.c
index 7a389f26922d0f11e5c0ac8af4d07ae41f09d277,66bb27e75dacf6ad6bce7f7f659cfd9e59bd211e..ce6443b7e5a47300e72fae2b2bb81d729ac3db41
+++ b/src/utils_rrdcreate.c
memcpy (argv + ds_num, rra_def, rra_num * sizeof (char *));
argv[ds_num + rra_num] = NULL;
- if (vl->time == 0)
- last_up = time (NULL) - 10;
- else
- last_up = CDTIME_T_TO_TIME_T (vl->time) - 10;
++ last_up = CDTIME_T_TO_TIME_T (vl->time);
++ if (last_up <= 10)
++ last_up = time (NULL);
++ last_up -= 10;
+
+ if (cfg->stepsize > 0)
+ stepsize = cfg->stepsize;
+ else
+ stepsize = (int) CDTIME_T_TO_TIME_T (vl->interval);
+
- assert (vl->time > 10);
status = srrd_create (filename,
- stepsize, last_up,
+ (cfg->stepsize > 0) ? cfg->stepsize : vl->interval,
- (vl->time > 10) ? (vl->time - 10) : vl->time,
++ last_up,
argc, (const char **) argv);
free (argv);