summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 173a384)
raw | patch | inline | side by side (parent: 173a384)
author | Florian Forster <ff@octo.it> | |
Mon, 14 Jun 2010 15:23:49 +0000 (17:23 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 14 Jun 2010 15:23:49 +0000 (17:23 +0200) |
graph_def.c | patch | blob | history |
diff --git a/graph_def.c b/graph_def.c
index 853508edcf875ef6f38e224510cadcba5657f15d..181788a9524dcced958980ae70c4a9088f6918c8 100644 (file)
--- a/graph_def.c
+++ b/graph_def.c
{
graph_ident_t *select;
+ uint32_t color;
+
graph_def_t *next;
};
return (NULL);
}
memset (ret, 0, sizeof (*ret));
+ ret->color = get_random_color ();
ret->next = NULL;
ret->select = ident_copy_with_selector (selector, ident,
/* Graph part */
array_append_format (args, "LINE1:def_%04i_avg#%06"PRIx32":%s",
- index, get_random_color (), dses[i]);
+ index, def->color, dses[i]);
array_append_format (args, "GPRINT:vdef_%04i_min:%%lg min,", index);
array_append_format (args, "GPRINT:vdef_%04i_avg:%%lg avg,", index);
array_append_format (args, "GPRINT:vdef_%04i_max:%%lg max,", index);