mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
speedups to syslog page, caching of device_id
git-svn-id: http://www.observium.org/svn/observer/trunk@743 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -102,7 +102,10 @@ if($config['enable_syslog']) {
|
||||
$sql = "SELECT *, DATE_FORMAT(datetime, '%D %b %T') AS date from syslog ORDER BY datetime DESC LIMIT 20";
|
||||
$query = mysql_query($sql);
|
||||
echo("<table cellspacing=0 cellpadding=2 width=100%>");
|
||||
while($entry = mysql_fetch_array($query)) { include("includes/print-syslog.inc"); }
|
||||
while($entry = mysql_fetch_array($query)) {
|
||||
$entry = array_merge($entry, device_by_id_cache($entry['device_id']));
|
||||
include("includes/print-syslog.inc");
|
||||
}
|
||||
echo("</table>");
|
||||
|
||||
echo("</div>"); ## Close Syslog Div
|
||||
|
||||
Reference in New Issue
Block a user