From 2271bb4d5fa4b3b7d57899c1186acc6dd56095a8 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 15 Jun 2010 16:25:33 +0200 Subject: [PATCH] graph_def.c: Make default number format easier to read. --- graph_def.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.30.2