From de8b7e204182ac6ab3f94aae776032cd162566c8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 16 Nov 2011 20:09:06 +0000 Subject: [PATCH] - fix gpu_ratios.php svn path=/trunk/boinc/; revision=24615 --- checkin_notes | 6 ++++++ html/user/gpu_ratios.php | 20 ++++++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/checkin_notes b/checkin_notes index fea39b0da6..64fdbb374d 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8516,3 +8516,9 @@ David 16 Nov 2011 gpu_list.php client/ net_stats.h + +David 16 Nov 2011 + - fix gpu_ratios.php + + html/user/ + gpu_ratios.php diff --git a/html/user/gpu_ratios.php b/html/user/gpu_ratios.php index d95f96c8d4..ee2e632e24 100644 --- a/html/user/gpu_ratios.php +++ b/html/user/gpu_ratios.php @@ -1,3 +1,4 @@ +expavg_credit; } } - - echo "CPU: ", $cpu_scale_sum/$cpu_credit_sum, "\n"; - echo "ATI: ", $ati_scale_sum/$ati_credit_sum, "\n"; - echo "NVIDIA: ", $nvidia_scale_sum/$nvidia_credit_sum, "\n"; } + +xml_header(); +echo "\n"; +if ($cpu_credit_sum) { + echo "", $cpu_scale_sum/$cpu_credit_sum, "\n"; +} +if ($ati_credit_sum) { + echo "", $ati_scale_sum/$ati_credit_sum, "\n"; +} +if ($nvidia_credit_sum) { + echo "", $nvidia_scale_sum/$nvidia_credit_sum, "\n"; +} +echo "\n"; +?>