Code

collection.cgi: Added "meta graph" for "dns_qtype" and "dns_rcode".
authorSebastian Harl <sh@tokkee.org>
Sun, 30 Mar 2008 15:25:16 +0000 (17:25 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Sun, 30 Mar 2008 17:35:29 +0000 (19:35 +0200)
commit2760cc10311aac2e86da335dcb982eaf2db6bff3
tree0056e6fde10ae6e213d5f8a75ba23f5ccbd5d669
parent915950cfc280a2fdaac92f839bf5fa66db96a433
collection.cgi: Added "meta graph" for "dns_qtype" and "dns_rcode".

This will merge all query types and return codes into a single graph each.

get_n_colors() has been taken from the version 3 script to get the colors for
the graphs. get_random_color() imho is not suitable for that purpose as it can
return colors that are hardly different - which would result in graphs that
are hard to read. get_n_colors() now returns a hash-ref suitable to be passed
to meta_graph_generic_stack().

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
contrib/collection.cgi