From: Florian Forster Date: Tue, 15 Jun 2010 14:25:33 +0000 (+0200) Subject: graph_def.c: Make default number format easier to read. X-Git-Tag: v4.0.0~236^2~3 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2271bb4d5fa4b3b7d57899c1186acc6dd56095a8;p=collection4.git graph_def.c: Make default number format easier to read. --- diff --git a/graph_def.c b/graph_def.c index b8e0ce4..4ea0966 100644 --- a/graph_def.c +++ b/graph_def.c @@ -332,13 +332,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);