diff options
Diffstat (limited to 'plugin/disk.php')
-rw-r--r-- | plugin/disk.php | 8 |
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; |
37 | switch($type) { | 37 | switch($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'; |