aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/dns.php
diff options
context:
space:
mode:
authorPim van den Berg2011-02-04 21:30:51 +0100
committerPim van den Berg2011-02-04 21:30:51 +0100
commitb17b98204d7e5a86f093203fd1dcd00b39ac57f0 (patch)
treee2294cb15abd15866539f34d88099afefc02f498 /plugin/dns.php
parentplugin: add dns plugin (diff)
downloadapt-panopticon_cgp-b17b98204d7e5a86f093203fd1dcd00b39ac57f0.zip
apt-panopticon_cgp-b17b98204d7e5a86f093203fd1dcd00b39ac57f0.tar.gz
apt-panopticon_cgp-b17b98204d7e5a86f093203fd1dcd00b39ac57f0.tar.bz2
apt-panopticon_cgp-b17b98204d7e5a86f093203fd1dcd00b39ac57f0.tar.xz
plugin/dns: generate colors in type dns_opcode
Diffstat (limited to '')
-rw-r--r--plugin/dns.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugin/dns.php b/plugin/dns.php
index f0c1b85..a3e5613 100644
--- a/plugin/dns.php
+++ b/plugin/dns.php
@@ -35,12 +35,7 @@ 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->ds_names = array( 38 $obj->generate_colors();
39 'value' => 'Queries/s',
40 );
41 $obj->colors = array(
42 'value' => '0000ff',
43 );
44 $obj->rrd_title = 'DNS Opcode Query'; 39 $obj->rrd_title = 'DNS Opcode Query';
45 $obj->rrd_vertical = 'Queries/s'; 40 $obj->rrd_vertical = 'Queries/s';
46 $obj->rrd_format = '%5.1lf%s'; 41 $obj->rrd_format = '%5.1lf%s';