summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 59fa404)
raw | patch | inline | side by side (parent: 59fa404)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 23 Apr 2003 22:47:00 +0000 (22:47 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 23 Apr 2003 22:47:00 +0000 (22:47 +0000) |
program/src/rrd_restore.c | patch | blob | history |
index 150f1ee8fd5f53a578d683297386160e1d6e1f40..4371d659c996e78b7dd282d2d42c4d9c811ce9ee 100644 (file)
strcpy(rrd->stat_head->cookie,RRD_COOKIE);
read_tag(&ptr,"version","%4[0-9]",rrd->stat_head->version);
/* added primitive version checking */
- if (atoi(rrd -> stat_head -> version) != 2)
+ if (atoi(rrd -> stat_head -> version) > atoi(RRD_VERSION) )
{
- rrd_set_error("Incompatible file version, detected version %s, required version %s\n",
- rrd -> stat_head -> version, RRD_VERSION);
+ rrd_set_error("Incompatible file version, detected version %s is bigger than supported version %s\n",
+ rrd -> stat_head -> version, RRD_VERSION );
free(rrd -> stat_head);
return -1;
}