#include "graph_def.h"
#include "graph.h"
#include "graph_config.h"
+#include "graph_ident.h"
#include "common.h"
#include "oconfig.h"
graph_config_get_bool (child, &def->area);
else if (strcasecmp ("Format", child->key) == 0)
graph_config_get_string (child, &def->format);
- else
- fprintf (stderr, "def_config: Ignoring unknown config option \"%s\"",
- child->key);
}
return (graph_add_def (cfg, def));
(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);