projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bernhard Fischer:
[rrdtool.git]
/
src
/
rrd_dump.c
diff --git
a/src/rrd_dump.c
b/src/rrd_dump.c
index
d839bf6
..
316814d
100644
(file)
--- a/
src/rrd_dump.c
+++ b/
src/rrd_dump.c
@@
-83,7
+83,7
@@
int rrd_dump_r(
rrd_value_t value;
struct tm tm;
rrd_value_t value;
struct tm tm;
- rrd_file = rrd_open(filename, &rrd, RRD_READONLY);
+ rrd_file = rrd_open(filename, &rrd, RRD_READONLY
| RRD_READAHEAD
);
if (rrd_file == NULL) {
rrd_free(&rrd);
return (-1);
if (rrd_file == NULL) {
rrd_free(&rrd);
return (-1);
@@
-134,7
+134,7
@@
int rrd_dump_r(
} else { /* DST_CDEF */
char *str = NULL;
} else { /* DST_CDEF */
char *str = NULL;
- rpn_compact2str((rpn_cdefds_t *) &
(rrd.ds_def[i].par[DS_cdef]),
+ rpn_compact2str((rpn_cdefds_t *) &(rrd.ds_def[i].par[DS_cdef]),
rrd.ds_def, &str);
fprintf(out_file, "\t\t<cdef> %s </cdef>\n", str);
free(str);
rrd.ds_def, &str);
fprintf(out_file, "\t\t<cdef> %s </cdef>\n", str);
free(str);
@@
-421,9
+421,8
@@
int rrd_dump_r(
}
fprintf(out_file, "</rrd>\n");
rrd_free(&rrd);
}
fprintf(out_file, "</rrd>\n");
rrd_free(&rrd);
- close(rrd_file->fd);
if (out_file != stdout) {
fclose(out_file);
}
if (out_file != stdout) {
fclose(out_file);
}
- return
(0
);
+ return
rrd_close(rrd_file
);
}
}