diff options
Diffstat (limited to '')
| -rw-r--r-- | plugin/libvirt.php | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/plugin/libvirt.php b/plugin/libvirt.php index 971b5a7..004eb26 100644 --- a/plugin/libvirt.php +++ b/plugin/libvirt.php | |||
| @@ -30,8 +30,7 @@ switch($obj->args['type']) { | |||
| 30 | 'write' => '00b000', | 30 | 'write' => '00b000', | 
| 31 | ); | 31 | ); | 
| 32 | $obj->rrd_title = sprintf('Disk Traffic (%s)', $obj->args['tinstance']); | 32 | $obj->rrd_title = sprintf('Disk Traffic (%s)', $obj->args['tinstance']); | 
| 33 | $obj->rrd_vertical = sprintf('%s per second', ucfirst($CONFIG['datasize'])); | 33 | $obj->rrd_vertical = 'Bytes per second'; | 
| 34 | $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; | ||
| 35 | $obj->rrd_format = '%5.1lf%s'; | 34 | $obj->rrd_format = '%5.1lf%s'; | 
| 36 | break; | 35 | break; | 
| 37 | case 'disk_ops': | 36 | case 'disk_ops': | 
| @@ -85,8 +84,8 @@ switch($obj->args['type']) { | |||
| 85 | 'tx' => '00b000', | 84 | 'tx' => '00b000', | 
| 86 | ); | 85 | ); | 
| 87 | $obj->rrd_title = sprintf('Interface Traffic (%s)', $obj->args['tinstance']); | 86 | $obj->rrd_title = sprintf('Interface Traffic (%s)', $obj->args['tinstance']); | 
| 88 | $obj->rrd_vertical = sprintf('%s per second', ucfirst($CONFIG['datasize'])); | 87 | $obj->rrd_vertical = sprintf('%s per second', ucfirst($CONFIG['network_datasize'])); | 
| 89 | $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; | 88 | $obj->scale = $CONFIG['network_datasize'] == 'bits' ? 8 : 1; | 
| 90 | break; | 89 | break; | 
| 91 | case 'if_packets': | 90 | case 'if_packets': | 
| 92 | $obj->data_sources = array('rx', 'tx'); | 91 | $obj->data_sources = array('rx', 'tx'); | 
