diff --git a/html/inc/db_ops.inc b/html/inc/db_ops.inc index cc13f8d2ad..c420935571 100644 --- a/html/inc/db_ops.inc +++ b/html/inc/db_ops.inc @@ -296,7 +296,9 @@ function show_failure_result_summary_by_platform() { $query_received_time = time() - $_GET['nsecs']; $main_query = " -SELECT case +SELECT + app_version_num AS App_Version, + case when INSTR(host.os_name, 'Darwin') then 'Darwin' when INSTR(host.os_name, 'Linux') then 'Linux' when INSTR(host.os_name, 'Windows') then 'Windows' @@ -311,50 +313,58 @@ SELECT case end else host.os_version end AS OS_Version, - app_version_num AS App_Version, - exit_status, - COUNT(*) AS error_count + exit_status AS Exit_Status, + COUNT(*) AS Error_Count FROM result left join host on result.hostid = host.id WHERE - appid = '$query_appid' and + appid = '3' and server_state = '5' and outcome = '3' and - received_time > '$query_received_time' + received_time > (UNIX_TIMESTAMP() - 86400) GROUP BY + app_version_num DESC, OS_Name, OS_Version, - app_version_num, exit_status "; $result = mysql_query($main_query); + $table_row_background = "eeeeee"; + echo "
OS Name | OS Version | App Version | Exit Status | Error Count | |||||
---|---|---|---|---|---|---|---|---|---|
App Version | OS Name | OS Version | Exit Status | Error Count | |||||
"; - echo $res->OS_Name; - echo " | "; - - echo ""; - echo $res->OS_Version; - echo " | "; - - echo ""; + echo " | "; echo $res->App_Version; echo " | "; - echo ""; + echo " | "; + echo $res->OS_Name; + echo " | "; + + echo ""; + echo $res->OS_Version; + echo " | "; + + echo ""; echo exit_status_string($res); echo " | "; - echo ""; + echo " | "; echo $res->error_count; echo " | ";