mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix scrut issues, pass by reference
This commit is contained in:
@@ -10,7 +10,8 @@ $nototal = 0;
|
||||
$rrd_list = array();
|
||||
$rrd_filenames = glob(rrd_name($device['hostname'], array('app', 'shoutcast', $app['app_id'], '*')));
|
||||
foreach ($rrd_filenames as $file) {
|
||||
$hostname = end(explode('-',basename($file, '.rrd')));
|
||||
$pieces = explode('-', basename($file, '.rrd'));
|
||||
$hostname = end($pieces);
|
||||
list($host, $port) = explode('_', $hostname, 2);
|
||||
$rrd_list[] = array(
|
||||
'filename' => $file,
|
||||
|
||||
Reference in New Issue
Block a user