mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
some formatting cleanups, introduce some more FIXMEs to look at, plus replace mysql_fetch_array by mysql_fetch_assoc, for great justice
git-svn-id: http://www.observium.org/svn/observer/trunk@2029 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -6,7 +6,7 @@ if ($_GET['device']) { $id = mres($_GET['device']); }
|
||||
$i = 1;
|
||||
|
||||
$query = mysql_query("SELECT * FROM `ucd_diskio` AS U, `devices` AS D WHERE D.device_id = '".$id."' AND U.device_id = D.device_id");
|
||||
while ($disk = mysql_fetch_array($query))
|
||||
while ($disk = mysql_fetch_assoc($query))
|
||||
{
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $disk['hostname'] . "/ucd_diskio-" . safename($disk['diskio_descr'] . ".rrd");
|
||||
if (is_file($rrd_filename))
|
||||
|
Reference in New Issue
Block a user