X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgraph_def.c;h=cecc8f029f4ade02594704c3bcbcd19b0730f4ec;hb=d3cf935b4ec35cb4acedb6c278177bdd4e1776cb;hp=927b3fef3badeb46e04bc3c59e6c3220c984468b;hpb=e570ccd032c7f252d8f8a5b5b15471a544c47d23;p=collection4.git diff --git a/src/graph_def.c b/src/graph_def.c index 927b3fe..cecc8f0 100644 --- a/src/graph_def.c +++ b/src/graph_def.c @@ -5,6 +5,7 @@ #include "graph_def.h" #include "graph.h" #include "graph_config.h" +#include "graph_ident.h" #include "common.h" #include "oconfig.h" @@ -329,13 +330,13 @@ int def_get_rrdargs (graph_def_t *def, graph_ident_t *ident, /* {{{ */ (def->legend != NULL) ? def->legend : def->ds_name, def->stack ? ":STACK" : ""); array_append_format (args, "GPRINT:vdef_%04i_min:%s min,", - index, (def->format != NULL) ? def->format : "%lg"); + index, (def->format != NULL) ? def->format : "%6.2lf"); array_append_format (args, "GPRINT:vdef_%04i_avg:%s avg,", - index, (def->format != NULL) ? def->format : "%lg"); + index, (def->format != NULL) ? def->format : "%6.2lf"); array_append_format (args, "GPRINT:vdef_%04i_max:%s max,", - index, (def->format != NULL) ? def->format : "%lg"); + index, (def->format != NULL) ? def->format : "%6.2lf"); array_append_format (args, "GPRINT:vdef_%04i_lst:%s last\\l", - index, (def->format != NULL) ? def->format : "%lg"); + index, (def->format != NULL) ? def->format : "%6.2lf"); free (file);