diff --git a/html/ops/db_ops.inc b/html/ops/db_ops.inc index a01bce9023..dc723fc73c 100644 --- a/html/ops/db_ops.inc +++ b/html/ops/db_ops.inc @@ -287,6 +287,14 @@ function validate_state_str($s) { return "Unknown"; } +function client_version_string($client_version_num) { + if ($result->client_version_num) { + return '---'; + } else { + return sprintf("%.2f", $client_version_num/100); + } +} + function show_result($result, $hide_xml_docs, $hide_stderr, $hide_times) { start_table(); if (!$hide_times) { @@ -314,6 +322,7 @@ function show_result($result, $hide_xml_docs, $hide_stderr, $hide_times) { row("Validate state", validate_state_str($result->validate_state)); row("claimed credit", $result->claimed_credit); row("Granted credit", $result->granted_credit); + row("Client version", client_version_string($result->client_version_num)); row("","Grep logs"); end_table(); echo "

"; @@ -339,9 +348,16 @@ function show_result_short($result) { $cs = result_client_state_string($result->client_state); $oc = result_outcome_string($result->outcome); $received = time_str($result->received_time); + $version = client_version_string($result->client_version_num); + + if ($result->outcome == 3) { + $color = 'red'; + } else { + $color = 'white'; + } echo " - + id>$result->id workunitid>$result->workunitid $ss @@ -355,11 +371,6 @@ function show_result_short($result) { } else { echo "---\n"; } - if ($result->client_version_num) { - $version = '---'; - } else { - $version = sprintf("%.2f", $result->client_version_num/100); - } echo "$version"; echo "$received"; echo "