Commit 3301d7f0 authored by kbahey's avatar kbahey

Limit the query to the last 1000 accessed URLs

parent 9fd4e00c
......@@ -545,7 +545,7 @@ function performance_nagios() {
}
else {
// Get the data form the database table
$result = db_query("SELECT * FROM {performance_summary}");
$result = db_query("SELECT * FROM {performance_summary} ORDER BY last_access DESC LIMIT 1000");
while($row = db_fetch_array($result)) {
$data_list[] = $row;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment