From 0248aa81931aa02609997058f5737b0d8d904602 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 16 Aug 2008 07:13:01 +0000 Subject: [PATCH] When in lazy mode, and the graph does not get regenerated, then there are no results from PRINT either. Fix for #163. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1461 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/doc/rrdgraph.pod | 2 +- program/src/rrd_graph.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/program/doc/rrdgraph.pod b/program/doc/rrdgraph.pod index 092e37fc..89ea6f75 100644 --- a/program/doc/rrdgraph.pod +++ b/program/doc/rrdgraph.pod @@ -264,7 +264,7 @@ Note that for linear graphs, SI notation is used by default. 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] diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 7ff68872..03027b13 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -2950,8 +2950,8 @@ int graph_paint( 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; -- 2.30.2