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:
@@ -1,12 +1,15 @@
|
||||
|
||||
<?php
|
||||
|
||||
if($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; }
|
||||
|
||||
$syslog_iter++;
|
||||
if(!is_integer($syslog_iter/2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; }
|
||||
|
||||
|
||||
if(!$entry['processed']) { $entry = process_syslog($entry, 1); }
|
||||
if(!$entry['deleted']) {
|
||||
|
||||
echo("<tr style=\"background-color: $bg\">
|
||||
echo("<tr style=\"background-color: $bg_colour\">
|
||||
<td width=0></td>");
|
||||
|
||||
echo("<td class=syslog width=125>" . $entry['date'] . "</td>");
|
||||
|
Reference in New Issue
Block a user