mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
switch to poller.php away from poll-device.php. increase syslog table read speed a bit by using php-side device info cache
git-svn-id: http://www.observium.org/svn/observer/trunk@1255 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -93,10 +93,14 @@ echo("
|
||||
|
||||
");
|
||||
|
||||
$sql = "SELECT *, DATE_FORMAT(timestamp, '%D %b %T') AS date from syslog,devices WHERE syslog.device_id = devices.device_id ORDER BY seq DESC LIMIT 20";
|
||||
$sql = "SELECT *, DATE_FORMAT(timestamp, '%D %b %T') AS date from `syslog` ORDER BY seq 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>");
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user