aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/disk.php
diff options
context:
space:
mode:
authorPim van den Berg2009-12-31 11:42:14 +0100
committerPim van den Berg2009-12-31 12:39:43 +0100
commit853a4e939c99fb683983d947f4267bf249f7c05e (patch)
treecfffabaa43f218fbc29c2b00cc7ceb36168a8b90 /plugin/disk.php
parentreplace duplicate code by function rrd_options (diff)
downloadapt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.zip
apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.tar.gz
apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.tar.bz2
apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.tar.xz
always show 'on $host' in the rrd title
'on $host' doesn't have to be added manually to rrd_title anymore.
Diffstat (limited to 'plugin/disk.php')
-rw-r--r--plugin/disk.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/disk.php b/plugin/disk.php
index 45b5fde..620b188 100644
--- a/plugin/disk.php
+++ b/plugin/disk.php
@@ -36,22 +36,22 @@ $obj->heigth = $heigth;
36$obj->seconds = $seconds; 36$obj->seconds = $seconds;
37switch($type) { 37switch($type) {
38 case 'disk_merged': 38 case 'disk_merged':
39 $obj->rrd_title = "Disk Merged Operations ($pinstance) on $host"; 39 $obj->rrd_title = sprintf('Disk Merged Operations (%s)', $pinstance);
40 $obj->rrd_vertical = 'Merged operations/s'; 40 $obj->rrd_vertical = 'Merged operations/s';
41 $obj->rrd_format = '%5.1lf'; 41 $obj->rrd_format = '%5.1lf';
42 break; 42 break;
43 case 'disk_octets': 43 case 'disk_octets':
44 $obj->rrd_title = "Disk Traffic ($pinstance) on $host"; 44 $obj->rrd_title = sprintf('Disk Traffic (%s)', $pinstance);
45 $obj->rrd_vertical = 'Bytes per second'; 45 $obj->rrd_vertical = 'Bytes per second';
46 $obj->rrd_format = '%5.1lf%s'; 46 $obj->rrd_format = '%5.1lf%s';
47 break; 47 break;
48 case 'disk_ops': 48 case 'disk_ops':
49 $obj->rrd_title = "Disk Operations ($pinstance) on $host"; 49 $obj->rrd_title = sprintf('Disk Operations (%s)', $pinstance);
50 $obj->rrd_vertical = 'Ops per second'; 50 $obj->rrd_vertical = 'Ops per second';
51 $obj->rrd_format = '%5.1lf'; 51 $obj->rrd_format = '%5.1lf';
52 break; 52 break;
53 case 'disk_time': 53 case 'disk_time':
54 $obj->rrd_title = "Disk time per operation ($pinstance) on $host"; 54 $obj->rrd_title = sprintf('Disk time per operation (%s)', $pinstance);
55 $obj->rrd_vertical = 'Avg. Time/Op'; 55 $obj->rrd_vertical = 'Avg. Time/Op';
56 $obj->rrd_format = '%5.1lf%ss'; 56 $obj->rrd_format = '%5.1lf%ss';
57 $obj->scale = '0.001'; 57 $obj->scale = '0.001';