summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 59ffebe)
raw | patch | inline | side by side (parent: 59ffebe)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 3 May 2003 15:41:41 +0000 (15:41 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 3 May 2003 15:41:41 +0000 (15:41 +0000) |
version number of the newly created files. -- Sasha Mikheev <sasha@avalon-net.co.il>
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@206 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@206 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_create.c | patch | blob | history |
diff --git a/src/rrd_create.c b/src/rrd_create.c
index e9dc2aae922e7363585060bcab9f12faa4d63634..a3bfafe9f9fde68481b34aa7275230beaabb082e 100644 (file)
--- a/src/rrd_create.c
+++ b/src/rrd_create.c
/* set some defaults */
strcpy(rrd.stat_head->cookie,RRD_COOKIE);
- /* assume the will be version 1 compatible */
- strcpy(rrd.stat_head->version,"0001");
+ strcpy(rrd.stat_head->version,RRD_VERSION);
rrd.stat_head->float_cookie = FLOAT_COOKIE;
rrd.stat_head->ds_cnt = 0; /* this will be adjusted later */
rrd.stat_head->rra_cnt = 0; /* ditto */
break;
case DST_CDEF:
parseCDEF_DS(&argv[i][offset+3],&rrd, rrd.stat_head->ds_cnt);
- /* need to mark the file w/ current version */
- strcpy(rrd.stat_head->version,RRD_VERSION);
break;
default:
rrd_set_error("invalid DS type specified");
rrd.rra_def[rrd.stat_head->rra_cnt].par[RRA_hw_beta].u_val = 1.0/288;
rrd.rra_def[rrd.stat_head->rra_cnt].par[RRA_dependent_rra_idx].u_cnt =
rrd.stat_head -> rra_cnt;
- /* need to mark the file w/ current version */
- strcpy(rrd.stat_head->version,RRD_VERSION);
break;
case CF_DEVSEASONAL:
case CF_SEASONAL: