projects
/
collection4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7a6beaf
)
graph_def.c: Make default number format easier to read.
author
Florian Forster
<ff@octo.it>
Tue, 15 Jun 2010 14:25:33 +0000
(16:25 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 15 Jun 2010 14:25:33 +0000
(16:25 +0200)
graph_def.c
patch
|
blob
|
history
diff --git
a/graph_def.c
b/graph_def.c
index
b8e0ce4
..
4ea0966
100644
(file)
--- 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,",
(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,",
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,",
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",
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);
free (file);