summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1a6a503)
raw | patch | inline | side by side (parent: 1a6a503)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 16 Aug 2008 07:13:01 +0000 (07:13 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 16 Aug 2008 07:13:01 +0000 (07:13 +0000) |
results from PRINT either. Fix for #163.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1461 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1461 a5681a0c-68f1-0310-ab6d-d61299d08faa
doc/rrdgraph.pod | patch | blob | history | |
src/rrd_graph.c | patch | blob | history |
diff --git a/doc/rrdgraph.pod b/doc/rrdgraph.pod
index 092e37fc59fc1d9471d27deddfb78f1e3c664800..89ea6f75cb409af48f0e80d45d54de5bbffaadbd 100644 (file)
--- a/doc/rrdgraph.pod
+++ b/doc/rrdgraph.pod
Only generate the graph if the current graph is out of date or not existent.
Note, that only the image size will be returned, if you run with lazy even
-when using graphv.
+when using graphv and even when using PRINT.
[B<-f>|B<--imginfo> I<printfstr>]
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 7ff68872fed8935986cda2945f2ac1040ca3faf7..03027b13b80263f57336b79f7d82547d0364883c 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
rrd_infoval_t info;
PangoFontMap *font_map = pango_cairo_font_map_get_default();
- /* if we are lazy and there is nothing to PRINT ... quit now */
- if (lazy && im->prt_c == 0) {
+ /* if we want and can be lazy ... quit now */
+ if (lazy) {
info.u_cnt = im->ximg;
grinfo_push(im, sprintf_alloc("image_width"), RD_I_CNT, info);
info.u_cnt = im->yimg;