diff options
author | Pim van den Berg | 2011-02-05 20:01:26 +0100 |
---|---|---|
committer | Pim van den Berg | 2011-02-05 20:01:26 +0100 |
commit | b1e34bd1868be418ef5ec26683a8d07f22cebd51 (patch) | |
tree | c4f7616f7159b71af7a1260b3e049af0fc29d507 /plugin/dns.php | |
parent | plugin/dns: generate colors in type dns_opcode (diff) | |
download | apt-panopticon_cgp-b1e34bd1868be418ef5ec26683a8d07f22cebd51.zip apt-panopticon_cgp-b1e34bd1868be418ef5ec26683a8d07f22cebd51.tar.gz apt-panopticon_cgp-b1e34bd1868be418ef5ec26683a8d07f22cebd51.tar.bz2 apt-panopticon_cgp-b1e34bd1868be418ef5ec26683a8d07f22cebd51.tar.xz |
replace function generate_colors by rainbow_colors
When no colors are defined they will be generated by function rainbow_colors.
Diffstat (limited to 'plugin/dns.php')
-rw-r--r-- | plugin/dns.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/plugin/dns.php b/plugin/dns.php index a3e5613..15143b5 100644 --- a/plugin/dns.php +++ b/plugin/dns.php | |||
@@ -35,14 +35,12 @@ switch($obj->args['type']) { | |||
35 | break; | 35 | break; |
36 | case 'dns_opcode': | 36 | case 'dns_opcode': |
37 | $obj->data_sources = array('value'); | 37 | $obj->data_sources = array('value'); |
38 | $obj->generate_colors(); | ||
39 | $obj->rrd_title = 'DNS Opcode Query'; | 38 | $obj->rrd_title = 'DNS Opcode Query'; |
40 | $obj->rrd_vertical = 'Queries/s'; | 39 | $obj->rrd_vertical = 'Queries/s'; |
41 | $obj->rrd_format = '%5.1lf%s'; | 40 | $obj->rrd_format = '%5.1lf%s'; |
42 | break; | 41 | break; |
43 | case 'dns_qtype': | 42 | case 'dns_qtype': |
44 | $obj->data_sources = array('value'); | 43 | $obj->data_sources = array('value'); |
45 | $obj->generate_colors(); | ||
46 | $obj->rrd_title = 'DNS QType'; | 44 | $obj->rrd_title = 'DNS QType'; |
47 | $obj->rrd_vertical = 'Queries/s'; | 45 | $obj->rrd_vertical = 'Queries/s'; |
48 | $obj->rrd_format = '%5.1lf%s'; | 46 | $obj->rrd_format = '%5.1lf%s'; |