Commit e8ac637f authored by kbahey's avatar kbahey

Better results from average for paths that have been accessed over the last 15 minutes

parent 3301d7f0
......@@ -544,8 +544,8 @@ function performance_nagios() {
}
}
else {
// Get the data form the database table
$result = db_query("SELECT * FROM {performance_summary} ORDER BY last_access DESC LIMIT 1000");
// Get the data form the database table for URLs that have been accessed in the last 15 minutes
$result = db_query("SELECT * FROM {performance_summary} WHERE last_access >= %d", time() - 15*60);
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