2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Added PROCESS_LOG_LIMIT for limit to rows to display of process logs

This commit is contained in:
azammitdcarf
2011-02-17 04:29:10 +00:00
parent d9ca3044d0
commit df4c8c520c
2 changed files with 9 additions and 2 deletions

View File

@@ -240,6 +240,12 @@ if (!defined('ALLOW_PAGE_REFRESH')) define ('ALLOW_PAGE_REFRESH',true);
*/ */
if (!defined('ALLOW_RESPONDENT_SELECTOR')) define ('ALLOW_RESPONDENT_SELECTOR',true); if (!defined('ALLOW_RESPONDENT_SELECTOR')) define ('ALLOW_RESPONDENT_SELECTOR',true);
/**
* Number of log records to display
*/
if (!defined('PROCESS_LOG_LIMIT')) define('PROCESS_LOG_LIMIT', 500);
/** /**
* Database configuration for queXS * Database configuration for queXS
*/ */

View File

@@ -207,10 +207,11 @@ function process_get_data($process_id)
{ {
global $db; global $db;
$sql = "SELECT process_log_id,datetime,data $sql = "SELECT process_log_id,DATE_FORMAT(datetime,'" . DATE_TIME_FORMAT ."') as datetime,data
FROM `process_log` FROM `process_log`
WHERE `process_id` = '$process_id' WHERE `process_id` = '$process_id'
ORDER BY process_log_id DESC"; ORDER BY process_log_id DESC
LIMIT " . PROCESS_LOG_LIMIT;
$rs = $db->GetAll($sql); $rs = $db->GetAll($sql);