Merge branch 'master' into ff/rrdd
authorFlorian Forster <octo@verplant.org>
Tue, 2 Sep 2008 09:36:35 +0000 (11:36 +0200)
committerFlorian Forster <octo@verplant.org>
Tue, 2 Sep 2008 09:36:35 +0000 (11:36 +0200)
Conflicts:

src/rrd_lastupdate.c
src/rrd_update.c

14 files changed:
1  2 
configure.ac
doc/rrdgraph.pod
src/rrd.h
src/rrd_dump.c
src/rrd_fetch.c
src/rrd_graph.c
src/rrd_graph.h
src/rrd_info.c
src/rrd_last.c
src/rrd_lastupdate.c
src/rrd_tool.c
src/rrd_tool.h
src/rrd_update.c
src/rrd_xport.c

diff --cc configure.ac
Simple merge
@@@ -264,20 -264,9 +264,20 @@@ Note that for linear graphs, SI notatio
  
  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<--daemon> I<address>]
 +
 +Address of the L<rrdcached(1)> daemon. If specified, a C<flush> command is sent
 +to the server before reading the RRD files. This allows the graph to contain
 +fresh data even if the daemon is configured to cache values for a long time. To
 +specify a UNIX domain socket use the prefix C<unix:>, see example below. Other
 +addresses are interpreted as normal network addresses, i.E<nbsp>e. IPv4 or IPv6
 +addresses in most cases.
 +
 + rrdtool graph [...] --daemon unix:/var/run/rrdcached.sock [...]
 +
  [B<-f>|B<--imginfo> I<printfstr>]
  
  After the image has been created, the graph function uses printf
diff --cc src/rrd.h
Simple merge
diff --cc src/rrd_dump.c
Simple merge
diff --cc src/rrd_fetch.c
Simple merge
diff --cc src/rrd_graph.c
@@@ -4262,27 -4229,12 +4288,32 @@@ void rrd_graph_options
                  rrd_set_error("unknown option '%s'", argv[optind - 1]);
              return;
          }
 +    } /* while (1) */
 +
 +    if (im->use_rrdcached == 0)
 +    {
 +        char *temp;
 +
 +        temp = getenv (ENV_RRDCACHED_ADDRESS);
 +        if (temp != NULL)
 +        {
 +            int status;
 +
 +            status = rrdc_connect (temp);
 +            if (status != 0)
 +            {
 +                rrd_set_error ("rrdc_connect(%s) failed with status %i.",
 +                        temp, status);
 +                return;
 +            }
 +            im->use_rrdcached = 1;
 +        }
      }
+     
+     pango_cairo_context_set_font_options(pango_layout_get_context(im->layout), im->font_options);
+     pango_layout_context_changed(im->layout);
  
      if (im->logarithmic && im->minval <= 0) {
          rrd_set_error
diff --cc src/rrd_graph.h
Simple merge
diff --cc src/rrd_info.c
Simple merge
diff --cc src/rrd_last.c
Simple merge
@@@ -1,6 -1,5 +1,6 @@@
  /*****************************************************************************
-  * RRDtool 1.3.0  Copyright by Tobi Oetiker, 1997-2008
+  * RRDtool 1.3.1  Copyright by Tobi Oetiker, 1997-2008
 + *                Copyright by Florian Forster, 2008
   *****************************************************************************
   * rrd_lastupdate  Get the last datum entered for each DS
   *****************************************************************************/
diff --cc src/rrd_tool.c
Simple merge
diff --cc src/rrd_tool.h
Simple merge
@@@ -1,7 -1,6 +1,7 @@@
  
  /*****************************************************************************
-  * RRDtool 1.3.0  Copyright by Tobi Oetiker, 1997-2008
+  * RRDtool 1.3.1  Copyright by Tobi Oetiker, 1997-2008
 + *                Copyright by Florian Forster, 2008
   *****************************************************************************
   * rrd_update.c  RRD Update Function
   *****************************************************************************
diff --cc src/rrd_xport.c
Simple merge